Searched refs:Decimal (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 221 start_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) 229 duration_ms = Decimal(duration_us) / Decimal(1000) 232 elapsed_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) - start_time 233 load = Decimal(int(mperf)*100)/ Decimal(ts [all...] |
/kernel/linux/linux-5.10/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 465 start_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) 473 duration_ms = Decimal(duration_us) / Decimal(1000) 476 elapsed_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) - start_time 477 load = Decimal(int(mperf)*100)/ Decimal(ts [all...] |
/kernel/linux/linux-6.6/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 461 start_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) 469 duration_ms = Decimal(duration_us) / Decimal(1000) 472 elapsed_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) - start_time 473 load = Decimal(int(mperf)*100)/ Decimal(ts [all...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | task-analyzer.py | 554 return self._time_out * decimal.Decimal(factor) 559 return self._time_in * decimal.Decimal(factor) 563 return (self._time_out - self._time_in) * decimal.Decimal(factor) 772 To prevent float rounding errors we use Decimal internally 774 return decimal.Decimal(time_ns) / decimal.Decimal(1e9) 872 if time >= decimal.Decimal(lower_time_limit): 876 if time <= decimal.Decimal(upper_time_limit): 882 if (time >= decimal.Decimal(lower_time_limit) and 883 time <= decimal.Decimal(upper_time_limi [all...] |
H A D | exported-sql-viewer.py | 134 from decimal import Decimal, ROUND_HALF_UP namespace 178 x = (n * Decimal(100)) / d 179 return str(x.quantize(Decimal(".1"), rounding=ROUND_HALF_UP)) 1188 if query.value(2) and Decimal(query.value(1)) <= Decimal(time): 1270 def __init__(self, collection, xbase=Decimal(0), ybase=Decimal(0)): 1280 x = float(Decimal(x) - self.xbase) 1281 y = float(Decimal(y) - self.ybase) 1286 return Decimal( [all...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | exported-sql-viewer.py | 133 from decimal import Decimal, ROUND_HALF_UP namespace 177 x = (n * Decimal(100)) / d 178 return str(x.quantize(Decimal(".1"), rounding=ROUND_HALF_UP)) 1187 if query.value(2) and Decimal(query.value(1)) <= Decimal(time): 1269 def __init__(self, collection, xbase=Decimal(0), ybase=Decimal(0)): 1279 x = float(Decimal(x) - self.xbase) 1280 y = float(Decimal(y) - self.ybase) 1285 return Decimal( [all...] |
Completed in 10 milliseconds