MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / stop

Method stop

libapp2sys/src/main/cpp/procutil.h:232–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 }
231
232 int stop(uint64_t &runUnixTime, uint64_t &cpuLoad) {
233 runUnixTime = getMillisecond() - m_startUnixTime;
234
235 m_running = 0;
236 void *stat;
237 pthread_join(m_thr, &stat);
238
239 cpuLoad = m_sumCpuLoad;
240
241 delete m_pStatReader;
242 for (int i = 0; i < CPU_COUNT; i++) {
243 delete m_ppCpuFfreqReader[i];
244 }
245 delete[] m_ppCpuFfreqReader;
246
247 return 0;
248 }
249};
250
251#endif //HARDCODER_PROCUTIL_H

Calls 1

getMillisecondFunction · 0.85

Tested by 1

onPauseMethod · 0.36