MCPcopy Create free account
hub / github.com/facebook/react / read

Method read

scripts/perf-counters/src/hardware-counter.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 int64_t read() {
91 uint64_t values[3];
92 if (readRaw(values)) {
93 if (!values[2]) return 0;
94 int64_t value = (double)values[0] * values[1] / values[2];
95 return value + extra;
96 }
97 return 0;
98 }
99
100 void incCount(int64_t amount) {
101 extra += amount;

Callers 15

progressFunction · 0.80
startReadingFromStreamFunction · 0.80
progressFunction · 0.80
startReadingFromStreamFunction · 0.80
progressFunction · 0.80
progressFunction · 0.80
progressFunction · 0.80
readIntoFunction · 0.80

Calls

no outgoing calls

Tested by 15

readIntoFunction · 0.64
pullFunction · 0.64
readFunction · 0.64
collectHintsFunction · 0.64
readIntoContainerFunction · 0.64
pushFunction · 0.64
pumpFunction · 0.64
readResultFunction · 0.64
readByteLengthFunction · 0.64
startFunction · 0.64
startFunction · 0.64