summaryrefslogtreecommitdiff
path: root/src/util/profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/profiler.h')
-rw-r--r--src/util/profiler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/profiler.h b/src/util/profiler.h
index c8eea24..7caac96 100644
--- a/src/util/profiler.h
+++ b/src/util/profiler.h
@@ -66,10 +66,8 @@ inline void __profiler_intern_new_frame( PROFILER_LIST_ENTRY* entry ) {
return pe->hash == entry->hash;
} );
- if( i != -1 ) {
- __profiler_intern_clear_frame( &gprof.frames.data[i] );
+ if( i != -1 )
gprof.frames.erase( i );
- }
PROFILER_LIST_ENTRY* pne = gprof.frames.push( ne );
for( auto& it : pne->children ) {