MCPcopy Create free account
hub / github.com/baidu/tera / RefreshAndDumpSysInfo

Method RefreshAndDumpSysInfo

src/tabletnode/tabletnode_impl.cc:770–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770void TabletNodeImpl::RefreshAndDumpSysInfo() {
771 int64_t cur_ts = get_micros();
772
773 sysinfo_.CollectTabletNodeInfo(tablet_manager_.get(), local_addr_);
774 sysinfo_.CollectHardwareInfo();
775 sysinfo_.SetTimeStamp(cur_ts);
776 sysinfo_.UpdateWriteFlowController();
777 sysinfo_.DumpLog();
778
779 VLOG(15) << "collect sysinfo finished, time used: " << get_micros() - cur_ts << " us.";
780}
781
782void TabletNodeImpl::ScanTablet(const ScanTabletRequest* request, ScanTabletResponse* response,
783 google::protobuf::Closure* done) {

Callers 1

RunMethod · 0.80

Calls 7

CollectTabletNodeInfoMethod · 0.80
CollectHardwareInfoMethod · 0.80
SetTimeStampMethod · 0.80
get_microsFunction · 0.50
getMethod · 0.45
DumpLogMethod · 0.45

Tested by

no test coverage detected