01 January 2018, 12:50 | #1 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
C profiler Aprof or other
I was looking for C profiler on Amiga and found Aprof on aminet.
It looks good. Detects all functions of profiled program but crashes when I press Start: https://photos.app.goo.gl/abu5AUxxgZYDjWW83 I've compiled gcc program with -g switch. Any one here have experience with Aprof ? Last edited by arti; 01 January 2018 at 18:58. |
01 January 2018, 13:50 | #2 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,309
|
Try increasing the stack? I've used it in the past without problems. I think with GCC code.
|
01 January 2018, 13:59 | #3 |
Registered User
Join Date: May 2016
Location: Rostock/Germany
Posts: 132
|
Dunno whether Aprof uses the "gcc" method, so YMMV.
For gprof, at least you would need to set -pg. |
01 January 2018, 14:36 | #4 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
|
wouldn't it be simpler to profile your app on a windows machine if everything else fails? or with AROS & Linux?
I know this may give different results because not the same CPU but still... |
01 January 2018, 19:23 | #5 | |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
Quote:
Compiling with -g shows program funcs. Demo example works. What Guru 8000002D means? |
|
02 January 2018, 11:23 | #6 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
|
02 January 2018, 16:58 | #7 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Couldn't get aprof to play nice with a sizable executable (~1mb, angband) compiled with gcc. Always was crashing on me. I tuned stack up to 1mb and kept crashing. I gave up
|
11 January 2018, 11:28 | #8 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
Michael Bienz author of Aprof has just released it's sources.
Maybe someone more experienced can fix problems with crashes. There is also nice documentation https://drive.google.com/open?id=0B0...kyX1kzSm5BV0Vn |
10 March 2018, 21:15 | #9 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
The symbols are mandatory and those are present if the executable was not stripped. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Profiler | Tiddlypeeps | Coders. General | 3 | 19 April 2010 06:53 |
|
|