| 924 | } |
| 925 | |
| 926 | static ProfilerThread* DuplicateProfilerThread(ProfilerThread* thread) |
| 927 | { |
| 928 | ProfilerThread* cpy = new ProfilerThread; |
| 929 | cpy->m_SamplesTotalTime = thread->m_SamplesTotalTime; |
| 930 | cpy->m_NameHash = thread->m_NameHash; |
| 931 | |
| 932 | uint32_t num_samples = thread->m_Samples.Size(); |
| 933 | cpy->m_Samples.SetCapacity(num_samples); |
| 934 | |
| 935 | for (uint32_t i = 0; i < num_samples; ++i) |
| 936 | { |
| 937 | cpy->m_Samples.Push(thread->m_Samples[i]); |
| 938 | } |
| 939 | return cpy; |
| 940 | } |
| 941 | |
| 942 | ProfilerFrame* DuplicateProfilerFrame(const ProfilerFrame* frame) |
| 943 | { |
no test coverage detected