File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ svg_fmt = "0.4"
52
52
tracy-rs = " 0.1.2"
53
53
derive_more = { version = " 0.99" , default-features = false , features = [" add_assign" ] }
54
54
etagere = " 0.2.6"
55
- glean = " 57.0.0"
55
+ glean = { version = " 57.0.0" , optional = true }
56
56
firefox-on-glean = { version = " 0.1.0" , optional = true }
57
57
swgl = { path = " ../swgl" , optional = true }
58
58
topological-sort = " 0.1"
Original file line number Diff line number Diff line change 2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
+ #[ cfg( feature = "gecko" ) ]
5
6
use glean:: TimerId ;
6
7
#[ cfg( feature = "gecko" ) ]
7
8
use firefox_on_glean:: metrics:: wr;
8
9
use std:: time:: Duration ;
9
10
10
11
pub struct Telemetry ;
11
12
13
+ #[ cfg( not( feature = "gecko" ) ) ]
14
+ pub struct TimerId ;
15
+
12
16
/// Defines the interface for hooking up an external telemetry reporter to WR.
13
17
#[ cfg( not( feature = "gecko" ) ) ]
14
18
impl Telemetry {
15
19
pub fn record_rasterize_blobs_time ( _duration : Duration ) { }
16
- pub fn start_framebuild_time ( ) -> TimerId { TimerId { id : 0 } }
20
+ pub fn start_framebuild_time ( ) -> TimerId { TimerId { } }
17
21
pub fn stop_and_accumulate_framebuild_time ( _id : TimerId ) { }
18
22
pub fn record_renderer_time ( _duration : Duration ) { }
19
23
pub fn record_renderer_time_no_sc ( _duration : Duration ) { }
20
24
pub fn record_scenebuild_time ( _duration : Duration ) { }
21
- pub fn start_sceneswap_time ( ) -> TimerId { TimerId { id : 0 } }
25
+ pub fn start_sceneswap_time ( ) -> TimerId { TimerId { } }
22
26
pub fn stop_and_accumulate_sceneswap_time ( _id : TimerId ) { }
23
27
pub fn cancel_sceneswap_time ( _id : TimerId ) { }
24
28
pub fn record_texture_cache_update_time ( _duration : Duration ) { }
You can’t perform that action at this time.
0 commit comments