From: "Markus Schöpflin" <no.spam@spam.spam>
Subject: Re: Profiling Ada binaries
Date: Mon, 25 Jul 2016 08:57:05 +0200
Date: 2016-07-25T08:57:05+02:00 [thread overview]
Message-ID: <7fdcaff3-ada4-4b93-2ded-e1ee3a09ea2c@spam.spam> (raw)
In-Reply-To: nmtcbq$6fh$1@dont-email.me
Am 22.07.2016 um 16:59 schrieb Alejandro R. Mosteo:
> On 22/07/16 15:24, Markus Schöpflin wrote:
>> Dear list,
>>
>> (...)
>>
>> Flat profile:
>>
>> Each sample counts as 0.01 seconds.
>> % cumulative self self total
>> time seconds seconds calls s/call s/call name
>> 4.66 4.91 4.91 429 0.01 0.01 foo1
>> 4.41 9.55 4.64 162635540 0.00 0.00 bar___elabs
>> 3.99 13.76 4.21 515639 0.00 0.00 foo2
>>
[...]
> It's been a long time since I last used gprof, so with the caveat that I may
> be totally off the mark: perhaps you're reading the detail in reverse? That
> is, from the single elaboration call you're calling something than in turn
> calls the math functions.
Not likely, as the spec of bar just contains a bunch of array and record
declarations and constants to initialize them with. Something along the lines of:
type T is array(1..10)(1..10) of Float;
T_Def : constant := (others => (others => 0.0));
But interestingly, when looking at the generated object code, the elaboration
code of the spec of bar is adjacent to some helper functions used by those
trigonometric functions. Looks like gprof somehow gets lost when translating
back to symbolic names.
Markus
prev parent reply other threads:[~2016-07-25 6:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-22 13:24 Profiling Ada binaries Markus Schöpflin
2016-07-22 14:59 ` Alejandro R. Mosteo
2016-07-22 15:05 ` Alejandro R. Mosteo
2016-07-25 7:01 ` Markus Schöpflin
2016-07-25 16:45 ` rieachus
2016-07-25 17:14 ` Simon Wright
2016-07-25 22:05 ` rieachus
2016-07-26 8:37 ` Markus Schöpflin
2016-08-01 22:40 ` rieachus
2016-08-01 23:36 ` Jeffrey R. Carter
2016-08-02 7:00 ` Markus Schöpflin
2016-08-05 3:18 ` rieachus
2016-08-05 20:27 ` Randy Brukardt
2016-08-02 6:39 ` Markus Schöpflin
2016-07-25 6:57 ` Markus Schöpflin [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox