winlin

refine utility of cpu, add comment for cpu percent

@@ -266,6 +266,8 @@ public: @@ -266,6 +266,8 @@ public:
266 // the time in ms when sample. 266 // the time in ms when sample.
267 int64_t sample_time; 267 int64_t sample_time;
268 // the percent of usage. 0.153 is 15.3%. 268 // the percent of usage. 0.153 is 15.3%.
  269 + // the percent is in [0, 1], where 1 is 100%.
  270 + // for multiple core cpu, max also is 100%.
269 float percent; 271 float percent;
270 // the total cpu time units 272 // the total cpu time units
271 // @remark, zero for the previous total() is zero. 273 // @remark, zero for the previous total() is zero.