Rename threadPoolMeasurements to OAI_THREADPOOLMEASUREMENTS
- make it clear that it belongs to OAI - follow convention of uppercase name
This commit is contained in:
@@ -106,7 +106,7 @@ void *one_thread(void *arg) {
|
||||
|
||||
void initNamedTpool(char *params,tpool_t *pool, bool performanceMeas, char *name) {
|
||||
memset(pool,0,sizeof(*pool));
|
||||
char *measr=getenv("threadPoolMeasurements");
|
||||
char *measr=getenv("OAI_THREADPOOLMEASUREMENTS");
|
||||
pool->measurePerf=performanceMeas;
|
||||
// force measurement if the output is defined
|
||||
pool->measurePerf |= measr!=NULL;
|
||||
|
||||
@@ -182,7 +182,7 @@ Returns the total number of jobs that were aborted, i.e., waiting for execution
|
||||
|
||||
## Performance measurements
|
||||
|
||||
A performance measurement is integrated: the pool will automacillay fill timestamps if you set the environement variable `threadPoolMeasurements` to a valid file name. The following measurements will be written to Linux pipe on a per-job basis:
|
||||
A performance measurement is integrated: the pool will automacillay fill timestamps if you set the environement variable `OAI_THREADPOOLMEASUREMENTS` to a valid file name. The following measurements will be written to Linux pipe on a per-job basis:
|
||||
|
||||
* `creationTime`: time the request is push to the pool;
|
||||
* `startProcessingTime`: time a worker start to run on the job
|
||||
@@ -193,6 +193,6 @@ The `measurement_display` tool to read the Linux pipe and display it in ASCII is
|
||||
In the cmake build directory, type `make/ninja measurement_display`. Use as
|
||||
follows:
|
||||
```
|
||||
sudo threadPoolMeasurements=tpool.meas ./nr-softmodem ...
|
||||
sudo OAI_THREADPOOLMEASUREMENTS=tpool.meas ./nr-softmodem ...
|
||||
./measurement_display tpool.meas
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user