Skip to content

Collecting HW counters for the entire system #12

@zaddan

Description

@zaddan

Hi,

Question 1:
Is it possible to collect data for the entire system, i.e, not for a specific executable, but rather let the counters collect data regardless of what's running on the system for some duration of time?

Is it possible to simply do:
perf = Profiler(events_groups=events) # with some events that we've already defined
while (true):
perf.start_counters(0)
time.sleep(20) # sleep for some time
data = perf.read_events()

in order to do system wide data collection (for the duration of 20 sec at a time)?

PS: would prefixing the name of the event with 'SYSTEMWIDE' do the trick?

Question 2:
Is it possible to set a sampling rate for the question above?

Thank you very much for your tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions