Changeset 11473 for trunk/module-webif-lib.h
- Timestamp:
- 01/18/19 20:17:57 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-webif-lib.h
r10000 r11473 57 57 }; 58 58 59 //should be filled with informations for stats block 60 struct pstat { 61 uint32_t info_procs; // running procs 62 int64_t utime_ticks; 63 int64_t cutime_ticks; 64 int64_t stime_ticks; 65 int64_t cstime_ticks; 66 int64_t cpu_total_time; 67 uint64_t vsize; // virtual memory size in bytes 68 uint64_t rss; //Resident Set Size in bytes 69 uint64_t mem_total; // Total Memory in bytes 70 uint64_t mem_free; // Free Memory in bytes 71 uint64_t mem_used; // Used Memory in bytes 72 uint64_t mem_buff; // Buffered Memory in bytes 73 uint64_t mem_cached; // Cached Memory in bytes 74 uint64_t mem_freem; // Buffered Memory in bytes 75 uint64_t mem_share; // Shared Memory in bytes 76 uint64_t mem_total_swap; // Total Swap Memory in bytes 77 uint64_t mem_free_swap; // Free Swap Memory in bytes 78 uint64_t mem_used_swap; // Used Swap Memory in bytes 79 float cpu_avg[3]; //CPU load from "load average" 80 struct timeb time_started; //needed for calculating time between function call 81 int64_t gone_refresh; //time difference between CPU usage calculations in sec 82 double cpu_usage_user; //user_CPU usage to display in % 83 double cpu_usage_sys; //sys_CPU usage to display in % 84 uint16_t check_available; //default is 0, if value x is not available, 85 //set corresponding bit to 1 -->module-webif.c / set_status_info() 59 // should be filled with informations for stats block 60 struct pstat 61 { 62 uint32_t info_procs; // running procs 63 int64_t utime_ticks; 64 int64_t cutime_ticks; 65 int64_t stime_ticks; 66 int64_t cstime_ticks; 67 int64_t cpu_total_time; 68 uint64_t vsize; // virtual memory size in bytes 69 uint64_t rss; // Resident Set Size in bytes 70 uint64_t mem_total; // Total Memory in bytes 71 uint64_t mem_free; // Free Memory in bytes 72 uint64_t mem_used; // Used Memory in bytes 73 uint64_t mem_buff; // Buffered Memory in bytes 74 uint64_t mem_cached; // Cached Memory in bytes 75 uint64_t mem_freem; // Buffered Memory in bytes 76 uint64_t mem_share; // Shared Memory in bytes 77 uint64_t mem_total_swap; // Total Swap Memory in bytes 78 uint64_t mem_free_swap; // Free Swap Memory in bytes 79 uint64_t mem_used_swap; // Used Swap Memory in bytes 80 float cpu_avg[3]; // CPU load from "load average" 81 struct timeb time_started; // needed for calculating time between function call 82 int64_t gone_refresh; // time difference between CPU usage calculations in sec 83 double cpu_usage_user; // user_CPU usage to display in % 84 double cpu_usage_sys; // sys_CPU usage to display in % 85 uint16_t check_available; // default is 0, if value x is not available, 86 // set corresponding bit to 1 --> module-webif.c / set_status_info() 86 87 }; 87 88
Note:
See TracChangeset
for help on using the changeset viewer.