English Amiga Board


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

 
 
Thread Tools
Old 01 January 2018, 12:50   #1
arti
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.
arti is offline  
Old 01 January 2018, 13:50   #2
nogginthenog
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.
nogginthenog is offline  
Old 01 January 2018, 13:59   #3
buggs
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.
buggs is offline  
Old 01 January 2018, 14:36   #4
jotd
This cat is no more
 
jotd's Avatar
 
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...
jotd is offline  
Old 01 January 2018, 19:23   #5
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 662
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 offline  
Old 02 January 2018, 11:23   #6
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
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, 16:58   #7
alkis
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
alkis is offline  
Old 11 January 2018, 11:28   #8
arti
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
arti is offline  
Old 10 March 2018, 21:15   #9
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
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 06: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 21:55.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07830 seconds with 13 queries