Prune commentary and stale Rust port notes
This commit is contained in:
1 parent
5428cd75c9
commit
25370731d0
193 files changed
+693
-16219
No files matched your search
@@ -1,10 +1,5 @@
|
||||
//! The percentile and summary printing both rigs share, so two runs'
|
||||
//! output can be read side by side.
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
/// The `p`th percentile of `sorted`, in milliseconds. Sorts in place, so
|
||||
/// a caller keeping its samples passes a clone.
|
||||
pub fn pct(sorted: &mut [Duration], p: f64) -> f64 {
|
||||
if sorted.is_empty() {
|
||||
return 0.0;
|
||||
@@ -14,9 +9,6 @@ pub fn pct(sorted: &mut [Duration], p: f64) -> f64 {
|
||||
sorted[i].as_secs_f64() * 1000.0
|
||||
}
|
||||
|
||||
/// Half a 120Hz frame -- the budget these rigs judge a *CPU* sample
|
||||
/// against, since layer 1 measures only the build phase and a frame has
|
||||
/// to acquire and submit as well.
|
||||
pub const CPU_BUDGET: Duration = Duration::from_micros(8_333);
|
||||
|
||||
pub fn summarise(name: &str, samples: &[Duration]) {
|
||||
@@ -33,7 +25,6 @@ pub fn summarise(name: &str, samples: &[Duration]) {
|
||||
);
|
||||
}
|
||||
|
||||
/// The percentile of a plain count (bytes, calls) rather than a duration.
|
||||
pub fn pct_u64(v: &mut [u64], p: f64) -> u64 {
|
||||
if v.is_empty() {
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user