We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a4951f commit 7c8c06dCopy full SHA for 7c8c06d
core/src/codspeed.cpp
@@ -48,14 +48,17 @@ std::string join(const std::vector<std::string> &elements,
48
return result;
49
}
50
51
-CodSpeed::CodSpeed() : is_instrumented(measurement_is_instrumented()) {
+CodSpeed::CodSpeed() {
52
+ // First initialize `g_hooks` before calling any measurement functions
53
+ measurement_init();
54
+
55
+ is_instrumented = measurement_is_instrumented();
56
if (!is_instrumented) {
57
std::cerr
58
<< "NOTICE: codspeed is enabled, but no performance measurement will "
59
"be made since it's running in an unknown environment."
60
<< std::endl;
61
- measurement_init();
62
measurement_set_metadata();
63
64
0 commit comments