This is specifically used for instrumenting Tensorflow ops. Takes input as whether a TF op is expensive or not and returns the TraceMe level to be assigned to trace that particular op. Assigns level 2 for expensive ops (these are high-level details and shown by default in profiler UI). Assigns level 3 for cheap ops (low-level details not shown by default).
| 34 | // expensive ops (these are high-level details and shown by default in profiler |
| 35 | // UI). Assigns level 3 for cheap ops (low-level details not shown by default). |
| 36 | inline int GetTFTraceMeLevel(bool is_expensive) { return is_expensive ? 2 : 3; } |
| 37 | |
| 38 | // Predefined levels: |
| 39 | // - Level 1 (kCritical) is the default and used only for user instrumentation. |
no outgoing calls
no test coverage detected