From 9ec98127d001bc2f60f4d53f6a870ff9c0869f04 Mon Sep 17 00:00:00 2001 From: Brad Schoening <5796692+bschoening@users.noreply.github.com> Date: Thu, 18 Nov 2021 23:39:45 -0500 Subject: [PATCH] fixed Python 3 open file change --- gc_log_visualizer.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/gc_log_visualizer.py b/gc_log_visualizer.py index 9772dc9..6b92371 100644 --- a/gc_log_visualizer.py +++ b/gc_log_visualizer.py @@ -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