MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SerializeToString

Method SerializeToString

tensorflow/core/profiler/lib/profiler_session.cc:183–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183Status ProfilerSession::SerializeToString(string* content) {
184 RunMetadata run_metadata;
185 TF_RETURN_IF_ERROR(CollectData(&run_metadata));
186
187 profiler::Trace trace;
188 ConvertRunMetadataToTraceEvent(
189 &run_metadata, &trace, start_time_micros_,
190 Env::Default()->NowNanos() / EnvTime::kMicrosToNanos);
191
192 trace.SerializeToString(content);
193 return Status::OK();
194}
195
196ProfilerSession::ProfilerSession()
197 : active_(!session_active.exchange(true)),

Callers 2

ProfileMethod · 0.45
SerializeToTStringFunction · 0.45

Calls 4

CollectDataFunction · 0.85
DefaultFunction · 0.85
NowNanosMethod · 0.45

Tested by

no test coverage detected