MCPcopy Create free account
hub / github.com/TheHPXProject/hpx / start

Method start

components/performance_counters/papi/src/server/papi.cpp:309–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 }
308
309 bool papi_counter::start()
310 {
311 std::lock_guard<papi_counter_base::mutex_type> lk(get_global_mtx());
312
313 if (status_ == PAPI_COUNTER_ACTIVE)
314 return true;
315 if (counters_->add_event(this))
316 {
317 status_ = PAPI_COUNTER_ACTIVE;
318 return true;
319 }
320 status_ = PAPI_COUNTER_SUSPENDED;
321 return false;
322 }
323
324 bool papi_counter::stop()
325 {

Callers 3

put_parcelMethod · 0.45
hpx_mainFunction · 0.45
hpx_mainFunction · 0.45

Calls 1

add_eventMethod · 0.80

Tested by 2

hpx_mainFunction · 0.36
hpx_mainFunction · 0.36