1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Calculate total time spent in source location.

This simple solution doesn't handle recursion at all.
This commit is contained in:
Bartosz Taudul
2018-03-24 14:24:30 +01:00
parent 40a14292b3
commit a9e1a9bddb
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -35,11 +35,16 @@ class Worker
struct SourceLocationZones
{
SourceLocationZones() : min( std::numeric_limits<int64_t>::max() ), max( std::numeric_limits<int64_t>::min() ) {}
SourceLocationZones()
: min( std::numeric_limits<int64_t>::max() )
, max( std::numeric_limits<int64_t>::min() )
, total( 0 )
{}
Vector<ZoneThreadData> zones;
int64_t min;
int64_t max;
int64_t total;
};
struct DataBlock