added printing info how much time winix spent in the ezc engine

added to Request:
timespec timespec_req_stop;
timespec timespec_req_diff;
timespec timespec_ezc_engine_start;
timespec timespec_ezc_engine_stop;
This commit is contained in:
2021-06-24 15:33:44 +02:00
parent 443c2023d9
commit 2f1cdcf379
9 changed files with 208 additions and 37 deletions

View File

@@ -37,6 +37,7 @@
#include <ctime>
#include "winixbase.h"
#include "request.h"
namespace Winix
@@ -60,8 +61,8 @@ public:
LoadAvg & operator=(const LoadAvg & l);
LoadAvg(const LoadAvg & l);
void StartRequest();
void StopRequest();
void StartRequest(Request * req);
void StopRequest(Request * req);
double LoadAvgNow(); // load average withing last WINIX_LOADAVG_GRANULARITY1 seconds
double LoadAvg1();
@@ -78,7 +79,7 @@ private:
struct Times
{
double dr; // time for the request (in seconds)
double dp; // time for the pause between requestes (in seconds)
double dp; // time for the pause between requestes(in seconds)
long req; // how many requests
void Clear()
@@ -98,6 +99,8 @@ private:
}
};
timespec timespec_old_req_stop;
void CheckTimers();
void UpdateTimer1();
void UpdateTimer5();
@@ -117,9 +120,7 @@ private:
void Calculate5();
void Calculate15();
bool was_stop_request;
timespec start_req, stop_req;
Times * tab1;
size_t len1;