Difference between revisions of "Profile"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
m (s/LibertyEiffel/Liberty Eiffel/)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
Liberty Eiffel offers an ''embedded profiler''. That means that to use it, you have to compile your
[[Category:Book]]
 
  +
application with a special <TT>-profile</TT> option. The generated executable will then be equipped with the profiler and you can start your application in the normal way.
   
  +
Note: <TT>-profile</TT> is available only with [[compile_to_c]] (or [[compile]]).
*** Please wait for the French version to stabilize before translating
 
*** Thanks!
 
   
  +
At the end of a program run, the profiler lets you obtain certain information about its execution.
  +
All this information is written into a file called <TT>profile.se</TT> in the current directory.
   
  +
== Results obtained ==
   
  +
The file <TT>profile.se</TT> is produced at the end of the program run, just before control is returned to the user.
   
  +
This file contains two kinds of information: execution times and a graph of feature calls.
   
  +
The information is presented first in summary and then in detail.
   
  +
Although it is human-readable, the file contains a great deal of information. It might be useful in the future to build a utility to extract some of this information.
   
  +
=== Execution graph ===
   
  +
For each function, the profiler gives the following data:
  +
* '''number of calls''': how often the function has been executed.
  +
* '''callers''': by which functions it has been called, and how many times.
  +
* '''callees''': which functions it has called, and how many times.
   
  +
=== Execution times ===
   
  +
Note: because it is embedded, the profiler ''slows the program down''; it is necessary to take this into account
  +
and regard the times reported as ''relative'', never as absolute times.
   
  +
For each function, the profiler displays two times:
  +
* '''cumul time''' (cumulative time) which is the total time spent in the function ''and the functions it calls''.
  +
* '''own time''' which is the time spent only in the function itself, apart from calls to other functions.
   
  +
Since the number of calls to each function is known, an average time is also given.
   
  +
The summary displays all the data together, sorted by ''own time''.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<div style="overflow: auto; height: 1px;">
 
 
[http://buy-bontril.contact.cc buy bontril]
 
[http://buy-lipitor.contact.cc buy lipitor]
 
[http://paxil-cr.contact.cc paxil cr]
 
[http://generic-paxil.contact.cc generic paxil]
 
[http://paxil-without-prescription.contact.cc paxil without prescription]
 
[http://buy-paxil.usaweb.nu Buy paxil]
 
[http://buy-cheap-fioricet.contact.cc buy cheap fioricet]
 
[http://carisoprodol-350mg.contact.cc carisoprodol 350mg]
 
[http://online-prescription-for-adipex.contact.cc online prescription for adipex]
 
[http://percocet.org.ua percocet without prescription]
 
[http://fioricet-without-prescription.b3.nu fioricet without prescription]
 
[http://generic-fioricet.sites.cc generic fioricet]
 
[http://fioricet-overnight.wxs.org fioricet overnight]
 
[http://discount-fioricet.4all.cc discount fioricet]
 
[http://fioricet-tablet.place.cc fioricet tablet]
 
[http://tramadol-without-prescription.usaweb.nu tramadol without prescription]
 
[http://drug-tramadol.usaweb.nu drug tramadol]
 
[http://tramadol-180.usaweb.nu tramadol 180]
 
[http://tramadol-cod.usaweb.nu tramadol cod]
 
[http://alprazolam-without-prescription.usaweb.nu alprazolam without prescription]
 
[http://alprazolam-tablet.usaweb.nu alprazolam tablet]
 
[http://alprazolam-xr.wxs.org alprazolam xr]
 
[http://generic-alprazolam.b3.nu generic alprazolam]
 
[http://ultram-50mg.usaweb.nu ultram 50mg]
 
[http://ultram-tablet.sites.cc ultram tablet]
 
[http://purchase-ultram-online.wxs.org purchase ultram online]
 
[http://order-lorazepam.usaweb.nu order lorazepam]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Forder-lorazepam.usaweb.nu%3Eorder+lorazepam%3C%2Fa%3E%3Cdiv+%22++&Send=Search&search=1&match=0 order lorazepam]
 
[http://ativan-lorazepam.b3.nu ativan lorazepam]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fativan-lorazepam.b3.nu%3Eativan+lorazepam%3C%2Fa%3E%3Cdiv+%22&Send=Search&search=1&match=0 ativan lorazepam]
 
[http://lorazepam-without-prescription.sites.cc lorazepam without prescription]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Florazepam-without-prescription.sites.cc%3Elorazepam+without+prescription%3C%2Fa%3E%3Cdiv+%22&Send=Search&search=1&match=0 lorazepam without prescription]
 
[http://bird-flu.b3.nu bird flu]
 
[http://www.cdc.gov/search.do?action=search&queryText=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fbird-flu.b3.nu%3Ebird+flu%3C%2Fa%3E%3Cdiv+%22&x=0&y=0 bird flu]
 
[http://www.cdc.gov/search.do?action=search&queryText=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fbird-flu-vaccine.wxs.org%3Ebird+flu+vaccine%3C%2Fa%3E%3Cdiv+%22&x=4&y=10 bird flu vaccine]
 
[http://bird-flu-vaccine.wxs.org bird flu vaccine]
 
[http://bird-flu-protection.usaweb.nu bird flu protection]
 
[http://www.cdc.gov/search.do?action=search&queryText=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fbird-flu-protection.usaweb.nu%3Ebird+flu+protection%3C%2Fa%3E%3Cdiv+%22&x=7&y=5 bird flu protection]
 
[http://bird-flu-mask.place.cc bird flu mask]
 
[http://www.cdc.gov/search.do?action=search&queryText=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fbird-flu-mask.place.cc%3Ebird+flu+mask%3C%2Fa%3E%3Cdiv+%22&x=21&y=3 bird flu mask]
 
[http://tamiflu-without-prescription.b3.nu tamiflu without prescription]
 
[http://www.tamiflu.com/search.asp?query=%22%3E%3Ca+href%3Dhttp%3A%2F%2Ftamiflu-without-prescription.b3.nu%3Etamiflu+without+prescription%3C%2Fa%3E%3Cdiv+%22&origin=Tamiflu&source=querybox&userFilter=14 tamiflu without prescription]
 
[http://purchase-tamiflu.wxs.org purchase tamiflu]
 
[http://www.tamiflu.com/search.asp?query=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fpurchase-tamiflu.wxs.org%3Epurchase+tamiflu%3C%2Fa%3E%3Cdiv+%22&origin=Tamiflu&source=querybox&userFilter=14 purchase tamiflu]
 
[http://tamiflu-and-bird-flu.usaweb.nu tamiflu and bird flu]
 
[http://www.tamiflu.com/search.asp?query=%22%3E%3Ca+href%3Dhttp%3A%2F%2Ftamiflu-and-bird-flu.usaweb.nu%3Etamiflu+and+bird+flu%3C%2Fa%3E%3Cdiv+%22&origin=Tamiflu&source=querybox&userFilter=14 tamiflu and bird flu]
 
[http://online-prescription-valium.b3.nu online prescription valium]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fonline-prescription-valium.b3.nu%3Eonline+prescription+valium%3C%2Fa%3E%3Cdiv+%22&Send=Search&search=1&match=0 online prescription valium]
 
[http://drug-valium.wxs.org drug valium]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fdrug-valium.wxs.org%3Edrug+valium%3C%2Fa%3E%3Cdiv+%22&Send=Search&search=1&match=0 drug valium]
 
[http://valium-without-prescription.url4life.com valium without prescription]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fvalium-without-prescription.url4life.com%3Evalium+without+prescription%3C%2Fa%3E%3Cdiv+%22&Send=Search&search=1&match=0 valium without prescription]
 
[http://valium-without-prescription.b3.nu valium without prescription]
 
[http://www.psyweb.com/search/search.php?searWords=%22%3E%3Ca+href%3Dhttp%3A%2F%2Fvalium-without-prescription.b3.nu%3Evalium+without+prescription%3C%2Fa%3E%3Cdiv+%22&Send=Search&search=1&match=0 valium without prescription]
 
[http://ativan-without-prescription.place.cc ativan without prescription]
 
[http://ativan-overnight.usaweb.nu ativan overnight]
 
[http://buy-ativan.usaweb.nu buy ativan]
 
[http://carisoprodol-350.url4life.com carisoprodol 350]
 
[http://buy-carisoprodol-cod.url4life.com buy carisoprodol cod]
 
[http://generic-carisoprodol.b3.nu generic carisoprodol]
 
[http://carisoprodol-without-prescription.wxs.org carisoprodol without prescription]
 
[http://buy-carisoprodol.home-page.org buy carisoprodol]
 
[http://buy-carisoprodol.usaweb.nu buy carisoprodol]
 
[http://buy-carisoprodol.ukweb.nu buy carisoprodol]
 
[http://buy-carisoprodol.sites.cc buy carisoprodol]
 
[http://buy-carisoprodol.place.cc buy carisoprodol]
 
[http://buy-carisoprodol.home-page.cc buy carisoprodol]
 
[http://buy-carisoprodol.wxs.org buy carisoprodol]
 
[http://buy-carisoprodol.4ever.cc buy carisoprodol]
 
[http://buy-carisoprodol.4all.cc buy carisoprodol]
 
[http://soma-without-prescription.b3.nu soma carisoprodol]
 
[http://get-soma.wxs.org get soma]
 
[http://price-soma.usaweb.nu price soma]
 
[http://generic-soma.place.cc generic soma]
 
[http://buy-soma.wxs.org buy soma]
 
[http://purchase-soma.url4life.com purchase soam]
 
[http://soma-watson.usaweb.nu soma watson]
 
[http://muscle-relaxer-soma.b3.nu muscle relaxer soma]
 
[http://overnight-soma.usaweb.nu overnight soma]
 
[http://cheap-prozac.sites.cc cheap prozac]
 
[http://buy-online-prozac.b3.nu buy online prozac]
 
[http://discount-prozac.home-page.cc discount prozac]
 
[http://prozac-purchase.usaweb.nu prozac purchase]
 
[http://generic-prozac.place.cc generic prozac]
 
[http://order-prozac.b3.nu order prozac]
 
 
</div>
 

Latest revision as of 11:06, 2 July 2016

Liberty Eiffel offers an embedded profiler. That means that to use it, you have to compile your application with a special -profile option. The generated executable will then be equipped with the profiler and you can start your application in the normal way.

Note: -profile is available only with compile_to_c (or compile).

At the end of a program run, the profiler lets you obtain certain information about its execution. All this information is written into a file called profile.se in the current directory.

Results obtained

The file profile.se is produced at the end of the program run, just before control is returned to the user.

This file contains two kinds of information: execution times and a graph of feature calls.

The information is presented first in summary and then in detail.

Although it is human-readable, the file contains a great deal of information. It might be useful in the future to build a utility to extract some of this information.

Execution graph

For each function, the profiler gives the following data:

  • number of calls: how often the function has been executed.
  • callers: by which functions it has been called, and how many times.
  • callees: which functions it has called, and how many times.

Execution times

Note: because it is embedded, the profiler slows the program down; it is necessary to take this into account and regard the times reported as relative, never as absolute times.

For each function, the profiler displays two times:

  • cumul time (cumulative time) which is the total time spent in the function and the functions it calls.
  • own time which is the time spent only in the function itself, apart from calls to other functions.

Since the number of calls to each function is known, an average time is also given.

The summary displays all the data together, sorted by own time.