Skip to content

Perf Counters in Multithread Benchmark #1929

@FlyGinger

Description

@FlyGinger

I found that all State objects use the same PerfCountersMeasurement pointer.

In State::PauseTiming() and State::ResumeTiming(), PerfCountersMeasurement::Start() and PerfCountersMeasurement::Stop() is called.

Each thread has an exclusive State object, but all these object share the same PerfCountersMeasurement pointer.

So is this correct? What happened when PerfCountersMeasurement::Start() and PerfCountersMeasurement::Stop() called multiple times in multiple threads?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions