git-svn-id: svn://db.shs.com.ru/pip@514 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -54,7 +54,8 @@ public:
|
||||
float cpu_load_user;
|
||||
};
|
||||
struct ThreadStats {
|
||||
ThreadStats() {cpu_load_kernel = cpu_load_user = -1.f;}
|
||||
ThreadStats() {id = 0; cpu_load_kernel = cpu_load_user = -1.f;}
|
||||
llong id;
|
||||
PIString name;
|
||||
PIDateTime created;
|
||||
PISystemTime work_time;
|
||||
@@ -81,13 +82,14 @@ public:
|
||||
private:
|
||||
void run();
|
||||
void makeStrings();
|
||||
void gatherThreadsStats();
|
||||
void gatherThread(llong id);
|
||||
float calcThreadUsage(PISystemTime & t_new, PISystemTime & t_old);
|
||||
|
||||
PIFile file, filem;
|
||||
ProcessStats stat;
|
||||
PIVector<ThreadStats> cur_ts;
|
||||
PIMap<const void*, ThreadStats> last_tm, cur_tm;
|
||||
PIMap<llong, ThreadStats> last_tm, cur_tm;
|
||||
PIMap<llong, PIString> tbid;
|
||||
bool self_;
|
||||
int pID_, page_size, cpu_count, cycle;
|
||||
PRIVATE_DECLARATION
|
||||
|
||||
Reference in New Issue
Block a user