<s> """<STR_LIT>""" <EOL> from random import randint <EOL> from pympler import web <EOL> from pympler . classtracker import ClassTracker <EOL> class Alpha ( object ) : <EOL> def __init__ ( self ) : <EOL> self . data = <NUM_LIT:100> * '<STR_LIT>' <EOL> class Beta ( object ) : <EOL> def __init__ ( self ) : <EOL> self . data = randint ( <NUM_LIT:200> , <NUM_LIT> ) * '<STR_LIT>' <EOL> class Gamma ( object ) : <EOL> def __init__ ( self ) : <EOL> self . mutable = list ( range ( <NUM_LIT:10> ) ) <EOL> self . immutable = tuple ( range ( <NUM_LIT:10> ) ) <EOL> def create_data ( tracker , iterations = <NUM_LIT:20> , obj_per_iteration = <NUM_LIT:100> ) : <EOL> objects = [ ] <EOL> for x in range ( iterations ) : <EOL> for y in range ( obj_per_iteration ) : <EOL> objects . append ( Alpha ( ) ) <EOL> objects . append ( Beta ( ) ) <EOL> objects . append ( Gamma ( ) ) <EOL> tracker . create_snapshot ( ) <EOL> return objects <EOL> tracker = ClassTracker ( ) <EOL> tracker . track_class ( Alpha ) <EOL> tracker . track_class ( Beta ) <EOL> tracker . track_class ( Gamma , trace = True , resolution_level = <NUM_LIT:2> ) <EOL> print ( "<STR_LIT>" ) <EOL> tracker . create_snapshot ( ) <EOL> data = create_data ( tracker ) <EOL> print ( "<STR_LIT>" ) <EOL> del data <EOL> tracker . create_snapshot ( ) <EOL> web . start_profiler ( debug = True , stats = tracker . stats ) </s>
