Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/facebook/react
/ useCounters
Function
useCounters
scripts/perf-counters/src/hardware-counter.cpp:36–42 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
static std::string s_profileHWEvents;
35
36
static inline bool useCounters() {
37
#ifdef VALGRIND
38
return false;
39
#else
40
return s_profileHWEnable;
41
#endif
42
}
43
44
class HardwareCounterImpl {
45
public:
Callers
2
readRaw
Method · 0.85
reset
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected