in src/read_log_file.py [0:0]
def get_gc_event_tables(files, zero_times=True, ignore_crashes = False):
# Files must be a list of strings
# Time range in seconds is either a list with 2 values,
# or a single integer max time.
if ignore_crashes:
print("Warning: ignore_crashes takes log files and ignores all crashes.")
if not files:
print("Warning: Files list empty in get_parsed_comparions_from_files")
return []
# all_runs
all_runs = []
for filelist in files:
gc_event_dataframes = [] # associated with one GC run.
for file in filelist:
# Create each log gc_event_dataframe
gc_event_dataframe = get_parsed_data_from_file(file, ignore_crashes)
gc_event_dataframe = scale_time(gc_event_dataframe)
gc_event_dataframe = scale_heap_allocation(gc_event_dataframe)
if not gc_event_dataframe.empty:
gc_event_dataframes.append(gc_event_dataframe)
else:
print("No information collected for file: ", file)
if gc_event_dataframes:
df = pd.concat(gc_event_dataframes)
if zero_times:
zero_start_times(df)
all_runs.append(df)
if not all_runs:
print("Error: No data collected in get_gc_event_tables.")
return all_runs