| 55 | } |
| 56 | |
| 57 | PerfettoProfiler::~PerfettoProfiler() |
| 58 | { |
| 59 | if (tracing_session) |
| 60 | { |
| 61 | perfetto::TrackEvent::Flush(); |
| 62 | tracing_session->StopBlocking(); |
| 63 | auto data = tracing_session->ReadTraceBlocking(); |
| 64 | std::ofstream out("acl.pftrace", std::ios::binary); |
| 65 | out.write(data.data(), data.size()); |
| 66 | out.close(); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | #ifdef ARM_COMPUTE_CL |
| 71 | void PerfettoProfiler::openclTraceBegin() |