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

Function TEST

tensorflow/lite/profiling/profiler_test.cc:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51TEST(ProfilerTest, NoProfilesAreCollectedWhenDisabled) {
52 BufferedProfiler profiler(1024);
53 ParentFunction(&profiler);
54 auto profile_events = profiler.GetProfileEvents();
55 EXPECT_EQ(0, profile_events.size());
56}
57
58TEST(ProfilingTest, ProfilesAreCollected) {
59 BufferedProfiler profiler(1024);

Callers

nothing calls this directly

Calls 6

ParentFunctionFunction · 0.85
GetDurationOfEventMsFunction · 0.85
GetProfileEventsMethod · 0.45
sizeMethod · 0.45
StartProfilingMethod · 0.45
StopProfilingMethod · 0.45

Tested by

no test coverage detected