English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 01 January 2018, 13:50   #1
arti
Registered User

 
Join Date: Jul 2008
Location: Poland
Posts: 511
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 19:58.
arti is online now  
Old 01 January 2018, 14:50   #2
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 669
Try increasing the stack? I've used it in the past without problems. I think with GCC code.
nogginthenog is offline  
Old 01 January 2018, 14:59   #3
buggs
Registered User

 
Join Date: May 2016
Location: Rostock/Germany
Posts: 53
Dunno whether Aprof uses the "gcc" method, so YMMV.

For gprof, at least you would need to set -pg.
buggs is offline  
Old 01 January 2018, 15:36   #4
jotd
Cat freak
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 47
Posts: 2,627
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...
jotd is offline  
Old 01 January 2018, 20:23   #5
arti
Registered User

 
Join Date: Jul 2008
Location: Poland
Posts: 511
Quote:
Originally Posted by buggs View Post
Dunno whether Aprof uses the "gcc" method, so YMMV.

For gprof, at least you would need to set -pg.
Yes, Aprof works with gcc http://aminet.net/package/dev/misc/AProf334
Compiling with -g shows program funcs.
Demo example works.

What Guru 8000002D means?
arti is online now  
Old 02 January 2018, 12:23   #6
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 45
Posts: 3,235
Quote:
Originally Posted by arti View Post
What Guru 8000002D means?
It means CPU has executed trap #13 instruction (and there is no proper handler for it). Odd. It looks like if the program wasn't compiled for Amiga but for something else, however it could just be the program having gone haywire.
meynaf is online now  
Old 02 January 2018, 17:58   #7
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 47
Posts: 448
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
alkis is offline  
Old 11 January 2018, 12:28   #8
arti
Registered User

 
Join Date: Jul 2008
Location: Poland
Posts: 511
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
arti is online now  
Old 10 March 2018, 22:15   #9
bebbo
Registered User

 
Join Date: Jun 2016
Location: Hamburg/Germany
Posts: 307
Quote:
Originally Posted by arti View Post
Yes, Aprof works with gcc http://aminet.net/package/dev/misc/AProf334
Compiling with -g shows program funcs.
Demo example works.

What Guru 8000002D means?
compiling with -g generates debug infos for a debugger and is not needed for Aprof - maybe even confusing it.

The symbols are mandatory and those are present if the executable was not stripped.
bebbo is offline  
 


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 07:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.07055 seconds with 15 queries