Home | History | Annotate | Download | only in cpustats

Lines Matching full:sample

32 // to demarcate the region(s) of interest, and then call sample() periodically.
74 // Add a sample point, and also enable tracking if needed.
76 // does _not_ add a sample -- it is not possible to add a sample the
79 // then adds a sample for tracked CPU ns since the previous
80 // sample, or since the first call to sampleAndEnable(), enable(), or
81 // setEnabled(true). If there was a previous sample but tracking is
82 // now disabled, then adds a sample for the tracked CPU ns accumulated
85 // by sample() avoids a race condition for the first sample.
86 // Returns true if the sample 'ns' is valid, or false if invalid.
92 // Add a sample point, but do not
94 // enabled, or has never been enabled since the last sample, then log a warning
95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since
96 // the previous sample or since the first call to sampleAndEnable(),
97 // enable(), or setEnabled(true) if no previous sample.
98 // Returns true if the sample is valid, or false if invalid.
102 bool sample(double& ns);
124 long long mAccumulator; // accumulated thread CPU time since last sample, in ns