User forums > Using Code::Blocks
Profiling a library
BlueHazzard:
--- Quote from: tigerbeard on September 24, 2018, 07:16:28 pm ---Do you mean you could profile one (or more) of those non-code-completion-plugins while there were running in Codeblocks?
--- End quote ---
i checked it again, and plugins all do not work. I get no signature from them, only some Alphanumerical code
--- Code: ---ZN8wxBitmap8LoadFileERK8wxString12wxBitmapType wxmsw30ud_gcc_custom [unknown] 0 0xc477a55
ZN8wxBitmapC2ERK8wxString12wxBitmapType wxmsw30ud_gcc_custom [unknown] 0 0xc476490
[2E55801D] ThreadSearch 0 0x2e55801d
[2E555791] ThreadSearch 0 0x2e555791
[2E53D18C] ThreadSearch 0 0x2e53d18c
[2E53CFCB] ThreadSearch 0 0x2e53cfcb
ZNK16wxAppConsoleBase11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_ wxmsw30ud_gcc_custom [unknown] 0 0xc324074
ZNK16wxAppConsoleBase16CallEventHandlerEP12wxEvtHandlerR14wxEventFunctorR7wxEvent wxmsw30ud_gcc_custom [unknown] 0 0xc3240d0
--- End code ---
The wxWidgets dll works fine as seen from above...
tigerbeard:
Well, at least it does list the DLL at all. Thats more than it did for my DLL, which was used but never appeared in the VerySleepy List as loaded.
Would you mind posting the actual compile command from the C::B message windows (there would be all switches/Settings etc visible)?
oBFusCATed:
Are you able to profile even a simple executable with a slow for loop in it? Several function calls to a slow function?
What about profiling a simple exe which calls to a slow dll funciton?
Start simple then make it complex.
p.s. profiling is done with optimisations enabled...
tigerbeard:
As I said above, I could profile a normal application with not problems with VerySleepy.
In this DLL case I can not start simple, since I do not have sources nor control of the host application and the minimum interface is above a certain complexity already. Otherwise its a good idea of course.
What you suggest would mean to setup a test case with simple Host App and a simple test DLL. As I do not have something close lying around I will not start that, right now. But I agree that this is the most efficient approach to test out that capabiltiy for VerySleepy.
I am leaning from this thread, that it does not seem to be an often used standard use case for VerySleepy.
PS I had tried the optimization on and off, this made no difference.
BlueHazzard:
VerySleepy seems to be abandoned since some time...
If i remember correctly AMD had some quite good profiler for windows. But they terminated it and replaced it with some new Program. I used it, but the UI was terrrible... You could try this AMD tool, or you will have to take some money and buy something.... https://developer.amd.com/amd-uprof/ (don't know if you have an intel cpu, and if this program works with it)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version