MCPcopy Create free account
hub / github.com/Niko1221/Strata / report

Method report

engine/src/core/mtp.cpp:1065–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063 }
1064 }
1065 void report() {
1066 for (int k = 0; k < 2; ++k) {
1067 if (n[k] == 0) continue;
1068 std::string out;
1069 char b[96];
1070 double tot = 0;
1071 for (int i = 1; i < kMpSlots; ++i) {
1072 if (sum[k][i] <= 0) continue;
1073 tot += sum[k][i];
1074 std::snprintf(b, sizeof b, " %s %.3f", kMpNames[i], sum[k][i] / 1e6 / (double) n[k]);
1075 out += b;
1076 }
1077 std::fprintf(stderr, "strata mtp profile (%s, ms per graph over %lld):%s | total %.3f\n", k == 0 ? "round" : "step",
1078 (long long) n[k], out.c_str(), tot / 1e6 / (double) n[k]);
1079 for (double& x : sum[k]) x = 0;
1080 n[k] = 0;
1081 }
1082 }
1083};
1084MtpProf g_mp;
1085

Callers 8

cmd_runFunction · 0.45
draftMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
test_foresight_exchangeFunction · 0.45
report_textFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 4

mainFunction · 0.36
test_foresight_exchangeFunction · 0.36
report_textFunction · 0.36
mainFunction · 0.36