ó
;œPc @ s´ d d l m Z d d l Z d d l Z d d l Z d d l Z d e j f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d d
„ Z d „ Z
e d k r° e ƒ n d S(
iÿÿÿÿ( t supportNt TestCasec B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c C s2 t j j | ƒ | j j | _ | j j | _ d S( N( R R t setUpt heapyt RefPatt Uset iso( t self( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR s c C sÉ g } g } x$ t | ƒ D] } | j | g ƒ q W| g | } xv t | d ƒ D]d } g } xO t | ƒ D]A } g } | j | ƒ x% t | ƒ D] } | j | | ƒ q Wqj W| } qQ W| }
|
| f S( Ni ( t ranget append( R t widtht lengtht dstt lst it xst jt yst kt src( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt makegraph
s
c C sÉ g } g } x$ t | ƒ D] } | j | g ƒ q W| g | } xv t | d ƒ D]d } g } xO t | ƒ D]A } g } | j | ƒ x% t | ƒ D] } | j | | ƒ q Wqj W| } qQ W| }
|
| f S( Ni ( R R ( R R
R R R
R R R R R R ( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR $ s
c K sX | j } | d k r$ | | ƒ } n | | ƒ j d | | } d „ | j j j _ | S( NR c S s d S( Ns
( ( t a( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt C s ( R t Nonet get_rpt modt UniSett summary_strt str_address( R R R t kwdsR t rp( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR > s ( t __name__t
__module__R R R ( ( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyR s t
RefPatCasec B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c C sê g } } | g } x* t d ƒ D] } | g } | j | ƒ q W| j | | d d ƒ} xF t | ƒ D]8 \ } } | t | ƒ k re | j | | | j ƒ qe qe W| j | d j | d ƒ | j | d j | d ƒ | j | | d d ƒ} | j | d j | d ƒ | j | d j | d ƒ | j t | ƒ t | ƒ d ƒ | j | | d d ƒ} | j t | ƒ t | ƒ d ƒ | j | j j | d ƒ | j | j j | d ƒ | j | | d d ƒ} | j | j
j | d ƒ | j | j j | d ƒ | d j | d ƒ | j j ƒ | j j
| j | d ƒ ƒ | j | j j | d ƒ g } | j | ƒ | g } | j | | ƒ } | j | j j | ƒ | j | j | j | | ƒ ƒ | j | j | j
ƒ | j | j | d ƒ d S( Ni t depthi
i iþÿÿÿiÿÿÿÿi i ( R R R t enumeratet lent asist theonet aseqt _R t a2t Viewt clear_retainerst update_referrersR ( R R R t listsR R t x( ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt test_basic_methodsH sD
c s… t j ƒ ‰ g } ‡ f d † ‰ ˆ j } d ‡ ‡ f d † } g } | j | ƒ | | | ƒ x- t d ƒ D] } | } g } | j | ƒ ql W| | | ƒ ˆ j d d ƒ \ } } | | | d d ƒˆ j d d ƒ \ } } | | | d d ƒ} ˆ t | j ƒ ƒ ˆ j d d ƒ \ } } | | | d d
ƒ} | j } ˆ t | ƒ ƒ ˆ t | j ƒ ƒ | j } ˆ t | ƒ ƒ | j }
ˆ t |
j ƒ ƒ ˆ t | j ƒ ƒ ˆ | j ƒ ˆ | j
ƒ ˆ j d d ƒ \ } } | | | d d ƒ} ˆ | j ƒ ˆ | j j ƒ ˆ j d d ƒ \ } } | | | d d ƒ} ˆ | j ƒ ˆ j | | d d ƒ} ˆ | j ƒ ˆ j ˆ j
ƒ d
ƒ d S( Nc s ˆ | IJd S( N( ( R. ( t output( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt write“ s c s) ˆ j | | | } ˆ t | ƒ ƒ | S( N( R t repr( R R t resultR R ( R R1 ( sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt test_pp— s i i R" i
i i i i# i i sò Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 1 list: *1
2: aa ---- [R] 1 tuple: *1
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 1 list: *1
2: aa ---- [-] 1 list: *1
3: a3 [-] 1 list: *1
4: a4 ------ [-] 1 list: *1
5: a5 [-] 1 list: *1
6: a6 -------- [-] 1 list: *1
7: a7 [R] 1 tuple: *1
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 5 list: *5, *5, *5, *5...
2: aa ---- [-] 5 list: *5, *5, *5, *5...
3: a3 [-] 5 list: *5, *5, *5, *5...
4: a4 ------ [-] 5 list: *5, *5, *5, *5...
5: a5 [-] 5 list: *5, *5, *5, *5...
6: a6 -------- [-] 5 list: *5, *5, *5...
7: a7 [-] 1 list: *5
8: a8 ---------- [R] 1 tuple: *1
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 5 list: *5, *5, *5, *5...
2: aa ---- [-] 5 list: *5, *5, *5, *5...
3: a3 [-] 5 list: *5, *5, *5, *5...
4: a4 ------ [-] 5 list: *5, *5, *5, *5...
5: a5 [-] 5 list: *5, *5, *5, *5...
6: a6 -------- [-] 5 list: *5, *5, *5...
7: a7 [-] 5 list: *5, *5, *5...
8: a8 ---------- [-] 5 list: *5, *5, *5...
9: a9 [-] 5 list: *5, *5, *5...
10: a10 ----------- [-] 5 list: *5, *5, *5...
11: a11 [-] 5 list: *5, *5, *5...
12: a12 ------------- [-] 5 list: *5, *5, *5...
13: a13 [-] 5 list: *5, *5, *5...
14: a14 --------------- [-] 5 list: *5, *5, *5...
15: a15 [-] 5 list: *5, *5, *5...
16: a16 ----------------- [-] 5 list: *5, *5, *5...
17: a17 [+] 1 list: *5
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 1 list: *1
2: aa ---- [-] 1 list: *1
3: a3 [-] 1 list: *1
4: a4 ------ [-] 1 list: *1
5: a5 [-] 1 list: *1
6: a6 -------- [-] 1 list: *1
7: a7 [-] 1 list: *1
8: a8 ---------- [-] 1 list: *1
9: a9 [-] 1 list: *1
10: a10 ----------- [-] 1 list: *1
11: a11 [-] 1 list: *1
12: a12 ------------- [-] 1 list: *1
13: a13 [-] 1 list: *1
14: a14 --------------- [-] 1 list: *1
15: a15 [-] 1 list: *1
16: a16 ----------------- [-] 1 list: *1
17: a17 [-] 1 list: *1
18: a18 ------------------- [-] 1 list: *1
19: a19 [-] 1 list: *1
20: a20 --------------------- [-] 1 list: *1
21: a21 [-] 1 list: *1
22: a22 ----------------------- [-] 1 list: *1
23: a23 [-] 1 list: *1
24: a24 ------------------------- [-] 1 list: *1
25: a25 [-] 1 list: *1
26: a26 --------------------------- [-] 1 list: *1
27: a27 [-] 1 list: *1
28: a28 ----------------------------- [-] 1 list: *1
29: a29 [-] 1 list: *1
20: a20 --------------------- [-] 1 list: *1
21: a21 [-] 1 list: *1
22: a22 ----------------------- [-] 1 list: *1
23: a23 [-] 1 list: *1
24: a24 ------------------------- [-] 1 list: *1
25: a25 [-] 1 list: *1
26: a26 --------------------------- [-] 1 list: *1
27: a27 [-] 1 list: *1
28: a28 ----------------------------- [-] 1 list: *1
29: a29 [-] 1 list: *1
30: a30 ------------------------------- [-] 1 list: *1
31: a31 [R] 1 tuple: *1
30: a30 ------------------------------- [-] 1 list: *1
31: a31 [R] 1 tuple: *1
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 1 list: *1
2: aa ---- [-] 1 list: *1
3: a3 [-] 1 list: *1
4: a4 ------ [-] 1 list: *1
5: a5 [-] 1 list: *1
6: a6 -------- [-] 1 list: *1
7: a7 [-] 1 list: *1
8: a8 ---------- [-] 1 list: *1
9: a9 [-] 1 list: *1
<22 more lines. Type e.g. '_.more' for more.>
10: a10 ----------- [-] 1 list: *1
11: a11 [-] 1 list: *1
12: a12 ------------- [-] 1 list: *1
13: a13 [-] 1 list: *1
14: a14 --------------- [-] 1 list: *1
15: a15 [-] 1 list: *1
16: a16 ----------------- [-] 1 list: *1
17: a17 [-] 1 list: *1
18: a18 ------------------- [-] 1 list: *1
19: a19 [-] 1 list: *1
<12 more lines. Type e.g. '_.more' for more.>
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 1 list: *1
2: aa ---- [-] 1 list: *1
3: a3 [-] 1 list: *1
4: a4 ------ [-] 1 list: *1
5: a5 [-] 1 list: *1
6: a6 -------- [-] 1 list: *1
7: a7 [-] 1 list: *1
8: a8 ---------- [-] 1 list: *1
9: a9 [-] 1 list: *1
10: a10 ----------- [+] 1 list: *1
Reference Pattern by <[dict of] class>.
0: _ --- [-] 1 list: *0
1: a [-] 1 list: *1
2: aa ---- [-] 1 list: *1
3: a3 [-] 1 list: *1
4: a4 ------ [-] 1 list: *1
5: a5 [-] 1 list: *1
6: a6 -------- [-] 1 list: *1
7: a7 [-] 1 list: *1
8: a8 ---------- [-] 1 list: *1
9: a9 [-] 1 list: *1
10: a10 ----------- [-] 1 list: *1
11: a11 [-] 1 list: *1
12: a12 ------------- [-] 1 list: *1
13: a13 [-] 1 list: *1
14: a14 --------------- [-] 1 list: *1
15: a15 [-] 1 list: *1
16: a16 ----------------- [-] 1 list: *1
17: a17 [-] 1 list: *1
18: a18 ------------------- [-] 1 list: *1
19: a19 [-] 1 list: *1
10: a10 ----------- [-] 1 list: *1
11: a11 [-] 1 list: *1
12: a12 ------------- [-] 1 list: *1
13: a13 [-] 1 list: *1
14: a14 --------------- [-] 1 list: *1
15: a15 [-] 1 list: *1
16: a16 ----------------- [-] 1 list: *1
17: a17 [-] 1 list: *1
18: a18 ------------------- [-] 1 list: *1
19: a19 [-] 1 list: *1
20: a20 --------------------- [+] 1 list: *1
( t StringIOR R R R R R2 t moret strt topt prevR R' t getvalue( R R t RR4 R R R. R t mt m1t m2( ( R0 R R1 sO /opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test/test_RefPat.pyt test_presentation sR
¤c C s¬ d d l } g } | g } | g } | f } | g } | | g } | j | | ƒ } | j | j j | ƒ | j ƒ | j | j j | ƒ | j | j j | d | ƒ d S( Niÿÿÿÿi ( t gcR R% R( R&