Somebody has already provided code objects in assemble_loop of x86/ assembler.py !
![](https://secure.gravatar.com/avatar/ff8f665585849e44d8c342bf3b8afd5f.jpg?s=120&d=mm&r=g)
I just downloaded the pypy code. Please inspect the following log and search for 'code object'. This is the exact data which vtune needs ! How did this happen ? Was it there all along ? Did someone justadd this (perhaps Armin himself) ? The signature for 'assemble_loop' has not changed between the vtune branch (last April) and now. I'm confused. Also we need the same functionality in 'assemble_bridge'. Would it be hard to add loopname to'assemble_bridge' ? The reason I am assuming assemble_bridge needs the same info is becausein the vtune_branch the vtune API was called from assemble_loop and assemble_bridge. def assemble_loop(self, jd_id, unique_id, logger, loopname, inputargs, operations, looptoken, log): def assemble_bridge(self, faildescr, inputargs, operations, original_loop_token, log, logger):
![](https://secure.gravatar.com/avatar/779e1633fecdd62c4c386fc953c5d3ec.jpg?s=120&d=mm&r=g)
Hi Shubha, On 8 January 2017 at 16:41, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote:
I just downloaded the pypy code. Please inspect the following log and search for 'code object'. This is the exact data which vtune needs ! How did this happen ? Was it there all along ?
Yes. But:
This is the exact data which vtune needs !
Not exactly. This is only the outermost function. It misses all inlined Python functions. Armin
![](https://secure.gravatar.com/avatar/ff8f665585849e44d8c342bf3b8afd5f.jpg?s=120&d=mm&r=g)
Got it. I now fully understand how vmprof is doing it. By manipulating the TLS (Thread Local Stack and inserting "kind" on the stack, where I care about the JITTED " kind). My struggle though is mapping rawaddress in assemble_loop and assemble_bridge to the addresses that pop up in vmprof profile.py. Any suggestions ? Shubha
On Jan 8, 2017, at 9:01 AM, Armin Rigo <armin.rigo@gmail.com> wrote:
Hi Shubha,
On 8 January 2017 at 16:41, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote:
I just downloaded the pypy code. Please inspect the following log and search for 'code object'. This is the exact data which vtune needs ! How did this happen ? Was it there all along ?
Yes. But:
This is the exact data which vtune needs !
Not exactly. This is only the outermost function. It misses all inlined Python functions.
Armin
participants (2)
-
Armin Rigo
-
Shubha Ramani