| 891 | } |
| 892 | |
| 893 | static double percentile(const std::vector<double>& v, double percentile) |
| 894 | { |
| 895 | size_t index = (percentile * (v.size() - 1)); |
| 896 | return v[index]; |
| 897 | } |
| 898 | |
| 899 | static std::string perf_group(instruction_ref ins, bool detailed) |
| 900 | { |