Move print to CLI function
This commit is contained in:
parent
19450ff028
commit
c2195fefb6
2 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,6 @@ def ctf_to_pickle(trace_directory: str, target: Pickler) -> int:
|
||||||
:param target: the target pickle file to write to
|
:param target: the target pickle file to write to
|
||||||
:return: the number of events written
|
:return: the number of events written
|
||||||
"""
|
"""
|
||||||
print(f'Importing trace directory: {trace_directory}')
|
|
||||||
ctf_events = utils._get_trace_ctf_events(trace_directory)
|
ctf_events = utils._get_trace_ctf_events(trace_directory)
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
|
|
@ -35,6 +35,7 @@ def main():
|
||||||
trace_directory = args.trace_directory
|
trace_directory = args.trace_directory
|
||||||
pickle_target_path = args.pickle_path
|
pickle_target_path = args.pickle_path
|
||||||
|
|
||||||
|
print(f'Importing trace directory: {trace_directory}')
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
count = ctf.convert(trace_directory, pickle_target_path)
|
count = ctf.convert(trace_directory, pickle_target_path)
|
||||||
time_diff = time.time() - start_time
|
time_diff = time.time() - start_time
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue