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

Function GetProfileEvents

tensorflow/lite/profiling/profile_buffer_test.cc:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace {
27
28std::vector<const ProfileEvent*> GetProfileEvents(const ProfileBuffer& buffer) {
29 std::vector<const ProfileEvent*> events;
30 for (size_t i = 0; i < buffer.Size(); i++) {
31 events.push_back(buffer.At(i));
32 }
33 return events;
34}
35
36TEST(ProfileBufferTest, Empty) {
37 ProfileBuffer buffer(/*max_size*/ 0, /*enabled*/ true);

Callers 1

TESTFunction · 0.85

Calls 3

AtMethod · 0.80
SizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected