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): 
[34f882a8cf8] {jit-backend-addr
Loop 1 ((tuple.contains: no get_printable_location)) has address 0x103142a38 to 
0x103142b30 (bootstrap 0x1031429a0)
       gc table: 0x103142960
       function: 0x1031429a0
         resops: 0x103142a38
       failures: 0x103142b30
            end: 0x103142bcb
[34f882bf454] jit-backend-addr}
[34f8a38ac9f] {jit-backend-addr
bridge out of Guard 0x1030ea2a8 has address 0x103142d20 to 0x103142ec0
       gc table: 0x103142cb0
    jump target: 0x103142d20
         resops: 0x103142d4e
       failures: 0x103142ec0
            end: 0x103143034
[34f8a390774] jit-backend-addr}
[34f8b4198fc] {jit-backend-addr
Loop 3 (<code object make_tree, file '../../binary-trees.py', line 10> #0 
LOAD_FAST) has address 0x1031431e8 to 0x1031433f0 (bootstrap 0x103143150)
       gc table: 0x1031430f0
       function: 0x103143150
         resops: 0x1031431e8
       failures: 0x1031433f0
            end: 0x1031434c9
[34f8b41fd49] jit-backend-addr}
[34f8b752de0] {jit-backend-addr
bridge out of Guard 0x1030eb9b8 has address 0x103143660 to 0x103143930
       gc table: 0x1031435d0
    jump target: 0x103143660
         resops: 0x10314368e
       failures: 0x103143930
            end: 0x103143ac3
[34f8b756ddc] jit-backend-addr}
[34f8bf794d0] {jit-backend-addr
bridge out of Guard 0x1030ebbf8 has address 0x103143c60 to 0x103144060
       gc table: 0x103143be0
    jump target: 0x103143c60
         resops: 0x103143c8e
       failures: 0x103144060
            end: 0x1031441f3
[34f8bf7f82c] jit-backend-addr}
[34f8dc94012] {jit-backend-addr
bridge out of Guard 0x1030ebda8 has address 0x1031444d0 to 0x103145180
       gc table: 0x103144420
    jump target: 0x1031444d0
         resops: 0x1031444fe
       failures: 0x103145180
            end: 0x1031453cd
[34f8dc99737] jit-backend-addr}
[35053d6ecf7] {jit-backend-addr
Loop 7 (<code object check_tree, file '../../binary-trees.py', line 19> #0 
LOAD_FAST) has address 0x103145598 to 0x103145740 (bootstrap 0x103145500)
       gc table: 0x103145490
       function: 0x103145500
         resops: 0x103145598
       failures: 0x103145740
            end: 0x103145857
[35053d765e6] jit-backend-addr}
[350542c0b27] {jit-backend-addr
bridge out of Guard 0x1032c4a40 has address 0x103145af0 to 0x103145dd0
       gc table: 0x103145a10
    jump target: 0x103145af0
         resops: 0x103145b1e
       failures: 0x103145dd0
            end: 0x103146099
[350542cbb00] jit-backend-addr}
[350553ff3f5] {jit-backend-addr
bridge out of Guard 0x1032c4ba8 has address 0x1031464e0 to 0x103146950
       gc table: 0x103146370
    jump target: 0x1031464e0
         resops: 0x10314650e
       failures: 0x103146950
            end: 0x103146e66
[3505541d38f] jit-backend-addr}
[35057c927f7] {jit-backend-addr
bridge out of Guard 0x1032c5730 has address 0x103147260 to 0x103147ed0
       gc table: 0x103147150
    jump target: 0x103147260
         resops: 0x10314728e
       failures: 0x103147ed0
            end: 0x103148272
[35057c99208] jit-backend-addr}
[350b488eb75] {jit-backend-addr
Loop 11 (<code object get_argchunks, file '../../binary-trees.py', line 34> #51 
FOR_ITER) has address 0x1031485e8 to 0x103148b00 (bootstrap 0x103148550)
       gc table: 0x103148470
       function: 0x103148550
         resops: 0x1031485e8
       failures: 0x103148b00
            end: 0x103148e26
[350b48949ef] jit-backend-addr}
[350b553b173] {jit-backend-addr
Loop 12 (<code object map, file '<builtin>/__builtin__/app_functional.py', line 
84> #121 FOR_ITER) has address 0x103149678 to 0x10314aa10 (bootstrap 
0x1031495e0)
       gc table: 0x1031493a0
       function: 0x1031495e0
         resops: 0x103149678
       failures: 0x10314aa10
            end: 0x10314b22d
[350b5541351] jit-backend-addr}
[350b63449b3] {jit-backend-addr
Loop 13 (<code object sum, file '<builtin>/__builtin__/app_functional.py', line 
42> #43 FOR_ITER) has address 0x10314b458 to 0x10314b5f0 (bootstrap 0x10314b3c0)
       gc table: 0x10314b340
       function: 0x10314b3c0
         resops: 0x10314b458
       failures: 0x10314b5f0
            end: 0x10314b7c1
[350b634a452] jit-backend-addr}
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to