def main(): interval = g1gc_conf.get_interval() config = g1gc_conf.get_gc_config() counters = { 'young': 0, 'mixed': 0, 'initialmark': 0, 'remark': 0, 'fullgc': 0 } gensize = {'eden': 0, 'survivor': 0, 'heap': 0} collector = { 'timestamp': None, 'data': {}, 'count': counters, 'gensize': gensize, 'current_file': None, 'current_file_pos': None, 'prefix': config['prefix'], 'log_dir': config['log_dir'], 'log_name_pattern': config['log_name_pattern'] } while True: process_gc_log(collector) sys.stdout.flush() time.sleep(interval)
def main(): interval = g1gc_conf.get_interval() config = g1gc_conf.get_gc_config() counters = {'young': 0, 'mixed': 0, 'initialmark': 0, 'remark': 0, 'fullgc': 0} gensize = {'eden': 0, 'survivor': 0, 'heap': 0} collector = {'timestamp': None, 'data': {}, 'count': counters, 'gensize': gensize, 'current_file': None, 'current_file_pos': None, 'prefix': config['prefix'], 'log_dir': config['log_dir'], 'log_name_pattern': config['log_name_pattern']} while True: process_gc_log(collector) sys.stdout.flush() time.sleep(interval)