repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git]
/
ACE
/
apps
/
JAWS
/
stress_testing
/
stats.h
blob
39f719c4cec54245084c1893d6836fb334af2e35
1
#include
"global.h"
2
3
#ifndef _D_Stats
4
#define _D_Stats
5
6
#define THREAD_START 42
7
#define THREAD_END 43
8
9
class
Init_Fini_t
{
10
public
:
11
int
type
;
// 0 is start, 1 is end
12
ACE_Time_Value timestamp
;
13
};
14
15
class
Stats
{
16
public
:
17
Stats
(
int
);
18
void
log
(
int
,
float
,
float
);
19
void
i_have_started
(
int
);
20
void
i_am_done
(
int
);
21
void
print
(
char
*);
22
void
output
();
23
private
:
24
float
*
throughput_
;
25
float
*
latency_
;
26
Init_Fini_t
*
init_fini_
;
// Array (2n deep) to count peak no. of active threads
27
int
thread_count_
;
28
};
29
#endif