| 913 | } |
| 914 | |
| 915 | void DeleteProfilerFrame(ProfilerFrame* frame) |
| 916 | { |
| 917 | if (!frame) |
| 918 | return; |
| 919 | for (uint32_t i = 0; i < frame->m_Threads.Size(); ++i) |
| 920 | { |
| 921 | DeleteProfilerThread(frame->m_Threads[i]); |
| 922 | } |
| 923 | delete frame; |
| 924 | } |
| 925 | |
| 926 | static ProfilerThread* DuplicateProfilerThread(ProfilerThread* thread) |
| 927 | { |