MCPcopy Create free account
hub / github.com/RenderKit/embree / relative

Method relative

kernels/common/profile.h:57–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 __forceinline void relative (const char* name)
58 {
59 const double t1 = getSeconds();
60 const double dt = t1-tj;
61 tj = t1;
62 assert(names[j] == nullptr || names[j] == name);
63 names[j] = name;
64 if (i == 0) dt_fst[j] = dt;
65 if (i>=numSkip) {
66 dt_min[j] = min(dt_min[j],dt);
67 dt_avg[j] = dt_avg[j] + dt;
68 dt_max[j] = max(dt_max[j],dt);
69 }
70 j++;
71 maxJ = max(maxJ,j);
72 }
73
74 void print(size_t numElements)
75 {

Callers

nothing calls this directly

Calls 3

getSecondsFunction · 0.85
minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected