Skip to content

Commit

Permalink
Minor fixes to profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
beroy committed Oct 25, 2023
1 parent e63989a commit 4a003c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions profiler/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import tiledbsoma

from .context_generator import host_context
from .data import FileBasedProfileDB, ProfileData, ProfileDB
from context_generator import host_context
from data import FileBasedProfileDB, ProfileData, ProfileDB

GNU_TIME_FORMAT = (
'Command being timed: "%C"\n'
Expand Down Expand Up @@ -149,6 +149,7 @@ def main():
required=False,
help="The flamegraph output produced by prof2",
)

args = parser.parse_args(sys.argv[1:])

print(f"Command to be run: {args.command}", file=stderr)
Expand All @@ -159,7 +160,6 @@ def main():
stderr=PIPE,
)

print(f"Running command to be profiled, PID = {p.pid}", file=stderr)
# Running additional profilers to extract flame graphs for the run
p1 = None
p2 = None
Expand Down Expand Up @@ -206,3 +206,6 @@ def main():
f"{data.command_key=}, {data.command=}, {data.exit_status=}, {db_record_file=}",
file=stderr,
)

if __name__ == "__main__":
main()

0 comments on commit 4a003c6

Please sign in to comment.