Skip to content

Commit

Permalink
fixed Python 3 open file change
Browse files Browse the repository at this point in the history
  • Loading branch information
bschoening committed Nov 19, 2021
1 parent 880f15f commit 9ec9812
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions gc_log_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ class LogParser:
def __init__(self, input_file):
self.timestamp = None
self.input_file = input_file
self.pause_file = open('pause.dat', "w+b")
self.young_pause_file = open('young-pause.dat', "w+b")
self.mixed_pause_file = open('mixed-pause.dat', "w+b")
self.pause_count_file = open('pause_count.dat', "w+b")
self.full_gc_file = open('full_gc.dat', "w+b")
self.gc_file = open('gc.dat', "w+b")
self.young_file = open('young.dat', "w+b")
self.root_scan_file = open('rootscan.dat', "w+b")
self.cms_mark_file = open('cms_mark.dat', "w+b")
self.cms_rescan_file = open('cms_rescan.dat', "w+b")
self.mixed_duration_file = open('mixed_duration.dat', "w+b")
self.exhaustion_file = open('exhaustion.dat', "w+b")
self.humongous_objects_file = open('humongous_objects.dat', "w+b")
self.reclaimable_file = open('reclaimable.dat', "w+b")
self.pause_file = open('pause.dat', "w")
self.young_pause_file = open('young-pause.dat', "w")
self.mixed_pause_file = open('mixed-pause.dat', "w")
self.pause_count_file = open('pause_count.dat', "w")
self.full_gc_file = open('full_gc.dat', "w")
self.gc_file = open('gc.dat', "w")
self.young_file = open('young.dat', "w")
self.root_scan_file = open('rootscan.dat', "w")
self.cms_mark_file = open('cms_mark.dat', "w")
self.cms_rescan_file = open('cms_rescan.dat', "w")
self.mixed_duration_file = open('mixed_duration.dat', "w")
self.exhaustion_file = open('exhaustion.dat', "w")
self.humongous_objects_file = open('humongous_objects.dat', "w")
self.reclaimable_file = open('reclaimable.dat', "w")
self.gc_alg_g1gc = False
self.gc_alg_cms = False
self.gc_alg_parallel = False
Expand Down

0 comments on commit 9ec9812

Please sign in to comment.