-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
from profiler import *
try:
events= [['PERF_COUNT_HW_INSTRUCTIONS'],
['PERF_COUNT_HW_BRANCH_INSTRUCTIONS','PERF_COUNT_HW_BRANCH_MISSES'],
['PERF_COUNT_SW_PAGE_FAULTS']]
perf= Profiler(program_args= ['/bin/ls','/'], events_groups=events)
data= perf.run(sample_period= 0.01)
print(data)
except RuntimeError as e:
print(e.args[0])
In this example you listed, can you help me understand the Profiler(program_args =
part? If I want to profile just one line of code do I need to change this?
Thanks. And I appreciate your work here. :)
Metadata
Metadata
Assignees
Labels
No labels