| 42 | } |
| 43 | |
| 44 | void ParentFunction(tflite::Profiler* profiler) { |
| 45 | ScopedProfile profile(profiler, "Parent"); |
| 46 | for (int i = 0; i < 2; i++) { |
| 47 | ChildFunction(profiler); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | TEST(ProfilerTest, NoProfilesAreCollectedWhenDisabled) { |
| 52 | BufferedProfiler profiler(1024); |