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

Method ActivityStartImpl

tensorflow/core/profiler/lib/traceme.cc:21–29  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

19namespace profiler {
20
21/* static */ uint64 TraceMe::ActivityStartImpl(
22 absl::string_view activity_name) {
23 uint64 parent_id = tracing::CallingContext::GetCurrentContext();
24 uint64 activity_id = tracing::CallingContext::GetAndPush();
25 TraceMeRecorder::Record({activity_id, string(activity_name),
26 /*start_time=*/EnvTime::Default()->NowNanos(),
27 /*end_time=*/0, /*parent_id=*/parent_id});
28 return activity_id;
29}
30
31/* static */ void TraceMe::ActivityEndImpl(uint64 activity_id) {
32 tracing::CallingContext::Pop();

Callers

nothing calls this directly

Calls 2

DefaultFunction · 0.85
NowNanosMethod · 0.45

Tested by

no test coverage detected