Skip to content

Commit

Permalink
hbt (#184)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #184

Reviewed By: zsol

Differential Revision: D51104970

fbshipit-source-id: 7bee9e8b5eb9ecebf4343a8a519d540740c6110f
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Nov 8, 2023
1 parent df570fb commit ebe968c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hbt/src/intel_pt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from hbt.intel_pt.tracer import Tracer


if __name__ == "__main__":
def main() -> None:
parser = argparse.ArgumentParser(description="Intel PT tracer.")
parser.add_argument("pid", type=int, default=None, help="PIDs to filter on.")
parser.add_argument(
Expand All @@ -32,3 +32,7 @@
for p in t.read():
print(f"Event at iteration {i}: {p}")
t.stop()


if __name__ == "__main__":
main() # pragma: no cover

0 comments on commit ebe968c

Please sign in to comment.