Windows Profiling and debugger

How do Windows Xojo users use a profiler to check a runaway process or check the call stack or a built application?

The profilers I have tried don’t seem to be able to list the call stack or function list. I can do it fine on Mac.

Windbg, ollydbg and asmprofiler don’t list any function names. I have ‘include function names’ ticked in the build settings.

Thanks

Lee

Are you aware that there’s a profiler built into the IDE?

Yes, but I need this for a built application.

I don’t want to build with profiling turned on for release versions.

I have client reporting that a service exe is consuming 100% CPU and I’d like to know what it’s doing at the time.

For the ‘build with profiling turned on’ option, what do the columns mean? I seem to remember a while ago seeing the text file , but not deciphering the layout.

Thanks

Lee

Check this.

https://github.com/ktekinay/Profile-Reader

I don’t think that app parses the current profile.txt files, as the Regex in Profile-Reader is looking for a different layout.

I did try it, but it did not recognise a Profile.txt file from Mac or PC.

Thanks, though

Lee

The columns look like they are number of calls | total time (ms) | thread percentage

Although the percentages don’t add up to 100% (or even 1%) so I don’t what the last column is.

Lee

[quote=132894:@Lee Badham]I don’t think that app parses the current profile.txt files, as the Regex in Profile-Reader is looking for a different layout.

I did try it, but it did not recognise a Profile.txt file from Mac or PC.[/quote]
What version did you try with? I just tried with a build made with 2013r4.1 and that works for me on Mac.
The profile reader itself I compiled with 2014r1.1.
Profile.txt read just fine

I do see that the percentages seem to be 0 again though. Maybe Kem can have a look at it (if he has time)?

PS: This is the link to the orginal forum post about it.
https://forum.xojo.com/11669-profile-reader-open-source-project-to-read-profile-txt

Nevermind the compiled app’s profile.txt contains 0%

Hmm, when I try and run this on my apps profile.txt file I get a NilObjectException.

I’d still like to be able to see the stack trace with function names of a compiled app without the profiling option set though.

Lee

What version of Xojo are you using?
Which operating system?
I might be able to test in that combination to see if it works for me.
Alternatively you can send me your profile.txt so I can see if we can get the project fixed if needed.