17 November 2020, 13:30 | #1 | |
<optimized out>
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
|
Profiling C code, interpreting results
I'e just run my lockdown project through the profiler and it's making me feel a bit thick. Does anyone know how to interpret results like these? I was expecting something like a drill down that would let me pick out the hot spots, but this is more like a wall of pink and orange rectangles.
Edit: I've played around a bit more and found that the mouse wheel scrolls in and clicking on an empty spot resets the zoom out to max, but I still don't get what I'm seeing, in particular, in my last few runs, _start and main appear several times, which surely can't be right. Edit 2: I now see, it's not what I thought it was, it profiles a single frame, i.e, 1/50th of a second. Quote:
Is there a more traditional profiler available anywhere? Last edited by Ernst Blofeld; 17 November 2020 at 20:37. |
|
18 November 2020, 13:36 | #2 |
Registered User
Join Date: Aug 2018
Location: Untergrund/Germany
Posts: 410
|
The profile "50 frames" button is right to the STOP button. It looks like a chart with 3 bars.
Here some help for the profiler: The profiler measures the time your functions needed. Left is start of profile time, right is end of profile time(usually start and and end of frame). Top -> down shows the callstack of the functions. So function "_start" calls "main" which calls "game" which calls "Draw" etc. I'm not sure why "DrawSection" is outside the callgraph. Maybe a bug. You can press left mouse on "> CPU" to unfold a text callgraph. Perhaps this is what you are looking for. I hope this helps. |
18 November 2020, 13:39 | #3 |
<optimized out>
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
|
I don't have that, I have just the STOP button, then the text "Profile", nothing else.
|
18 November 2020, 23:18 | #4 |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
You still have the old version from the marketplace, I recommend you get the latest preview version from GitHub
|
19 November 2020, 09:46 | #5 |
<optimized out>
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
|
Thanks, I've installed that now, and it's pretty awesome.
For it to be even more awesome I need to be able to select some or all of the frames to get aggregate results, even if they're limited to just the main function timings. But even without that it's giving me very useful information. |
19 November 2020, 18:45 | #6 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
|
Hiz! Looking at the profile section I see it is colourful with all that information but I cant get that in my vscode. All I see is a black screen.
Perhaps is a theme problem? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBCC Profiling options ? | ReadOnlyCat | Coders. C/C++ | 9 | 28 October 2020 14:22 |
Interpreting DMA-Debugger output | selco | support.WinUAE | 10 | 27 November 2019 20:48 |
Profiling code under WinUAE? | deimos | Coders. General | 8 | 08 October 2018 17:55 |
Profiling WinUAE with Visual Studio 2013 | mark_k | support.WinUAE | 3 | 14 January 2014 20:26 |
Error while interpreting script | Makkinen | support.Apps | 1 | 15 October 2004 15:58 |
|
|