Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13215 > unrolled thread

Can you profile compiled code?

Started bysamid.hoda@gmail.com
First post2013-01-19 06:13 +0000
Last post2013-01-20 06:25 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Can you profile compiled code? samid.hoda@gmail.com - 2013-01-19 06:13 +0000
    Re: Can you profile compiled code? Szabolcs Horvát <szhorvat@gmail.com> - 2013-01-20 06:25 +0000

#13215 — Can you profile compiled code?

Fromsamid.hoda@gmail.com
Date2013-01-19 06:13 +0000
SubjectCan you profile compiled code?
Message-ID<kdddio$a1b$1@smc.vnet.net>
I am trying to profile some compiled code using Workbench but I don't seem to be able to get any timing data for the lines inside my compiled function. Do I need to set an option or will Profile[] automatically generate data for the compiled function?

I apologize if there is a readily available source that answers my question (I Googled and looked through the Workbench documentation), but I couldn't find one.

Thanks,
Sam

[toc] | [next] | [standalone]


#13217

FromSzabolcs Horvát <szhorvat@gmail.com>
Date2013-01-20 06:25 +0000
Message-ID<kdg2lb$hfc$1@smc.vnet.net>
In reply to#13215
On 2013-01-19 06:13:44 +0000, samid.hoda@gmail.com said:

> I am trying to profile some compiled code using Workbench but I don't 
> seem to be able to get any timing data for the lines inside my compiled 
> function. Do I need to set an option or will Profile[] automatically 
> generate data for the compiled function?
> 
> I apologize if there is a readily available source that answers my 
> question (I Googled and looked through the Workbench documentation), 
> but I couldn't find one.

I am not aware of any way to profile the innards of a byte-code 
compiled function (which doesn't mean that there ins't a way…)

But if you compile to C (not byte code), technically yo could use a 
profiler for C to get some information about what needs to be sped up.  
I expect it'll take some work to figure out how to profile such a 
function effectively, as the code is generated and loaded into the 
kernel by default.  You could split the function off and call it from a 
separate program (not the kernel) to profile it more easily.  I have 
never done this personally.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web