mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 15:55:30 +00:00
remove test code
This commit is contained in:
parent
590b159f14
commit
e4826e8bf1
@ -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
|
||||
|
@ -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;
|
||||
});
|
||||
|
11
src/main.cpp
11
src/main.cpp
@ -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)");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user