Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the "Very Sleepy" profiler to profile DLLs

I have a DLL that I want to profile.. I tried to use Very Sleepy, but I can't seem to get the source file column to display which source file the functions came from, all it displays is "unknown".. Anyway, I'm really baffled on how to use this app.. Can anyone point me to some help? There's not much documentation on it and it seems like it hasnt been maintained recently.. =/

Thanks..

EDIT: Adding another question:

What do the terms exclusive and inclusive mean in this app? Thanks..

like image 733
krebstar Avatar asked Jan 22 '09 07:01

krebstar


2 Answers

You're going to need debugging information (PDB files) if you want to know the source file and column. That information doesn't get saved unless you ask for it.


Unfortunately the profiler has no documentation that I can find. However, there are definitions for inclusive and exclusive when it comes to profiling:

  • inclusive: total amount of time spent in function
  • exclusive: amount of time spent in function minus any time spent calling other functions
like image 72
Max Lybbert Avatar answered Oct 06 '22 00:10

Max Lybbert


If you already have the PDB file, remember to keep it in the same directory it was generated.

If you don't remember what directory it should be kept in, just open your .exe or .dll with a text/hex editor and scroll until the very end of the file, the pdb directory will be there. This is true, at least, if you're using MSVC6.

I hope it helps.

like image 25
davidag Avatar answered Oct 06 '22 01:10

davidag