diff options
author | 2019-11-02 19:58:49 +0100 | |
---|---|---|
committer | 2019-11-02 19:58:49 +0100 | |
commit | 58e04af824a64d9f712a2d6691d4283888d271d3 (patch) | |
tree | 1408e07b0eb618d9a64ad6a9a0d8953832dc2aa8 /native/src/metrics.rs | |
parent | f3baae92282566ccb6ff3689a08fcaa907430ef7 (diff) | |
download | iced-58e04af824a64d9f712a2d6691d4283888d271d3.tar.gz iced-58e04af824a64d9f712a2d6691d4283888d271d3.tar.bz2 iced-58e04af824a64d9f712a2d6691d4283888d271d3.zip |
Draft `Metrics` and improve `Target` abstraction
Diffstat (limited to 'native/src/metrics.rs')
-rw-r--r-- | native/src/metrics.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/native/src/metrics.rs b/native/src/metrics.rs new file mode 100644 index 00000000..7c344b9b --- /dev/null +++ b/native/src/metrics.rs @@ -0,0 +1,11 @@ +use std::time; + +/// A bunch of metrics about an Iced application. +#[derive(Debug, Clone, Copy)] +pub struct Metrics { + pub startup_time: time::Duration, + pub update_time: time::Duration, + pub view_time: time::Duration, + pub renderer_output_time: time::Duration, + pub message_count: usize, +} |