remove test code

This commit is contained in:
Lion Kortlepel 2024-03-07 00:42:36 +01:00
parent 590b159f14
commit e4826e8bf1
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
3 changed files with 0 additions and 13 deletions

View File

@ -23,7 +23,6 @@ struct Stats {
double min;
double max;
size_t n;
size_t total_calls;
};
/// Calculates and stores the moving average over K samples of execution time data

View File

@ -860,7 +860,6 @@ TLuaEngine::StateThreadData::StateThreadData(const std::string& Name, TLuaStateI
Result[name]["min"] = stat.min;
Result[name]["max"] = stat.max;
Result[name]["n"] = stat.n;
Result[name]["total_calls"] = stat.total_calls;
}
return Result;
});

View File

@ -178,17 +178,6 @@ int BeamMPServerMain(MainArguments Arguments) {
Http::Server::THttpServerInstance HttpServerInstance {};
}
prof::UnitExecutionTime t {};
for (size_t i = 0; i < 10'000'000; ++i) {
t.add_sample(std::chrono::seconds(1));
t.add_sample(std::chrono::seconds(2));
t.add_sample(std::chrono::seconds(3));
}
auto stats = t.stats();
beammp_errorf("mean: {}, stdev: {}, min: {}, max: {}, n: {}", stats.mean, stats.stdev, stats.min, stats.max, stats.n);
exit(69);
Application::SetSubsystemStatus("Main", Application::Status::Good);
RegisterThread("Main(Waiting)");