@@ -99,11 +99,11 @@ use parking_lot::RwLock;
99
99
100
100
/// MmapSerializatioSink is faster on macOS and Linux
101
101
/// but FileSerializationSink is faster on Windows
102
- #[ cfg( all( not( windows) , not( target_arch= "wasm32" ) ) ) ]
102
+ #[ cfg( all( not( windows) , not( target_arch = "wasm32" ) ) ) ]
103
103
type SerializationSink = measureme:: MmapSerializationSink ;
104
- #[ cfg( all( windows, not( target_arch= "wasm32" ) ) ) ]
104
+ #[ cfg( all( windows, not( target_arch = "wasm32" ) ) ) ]
105
105
type SerializationSink = measureme:: FileSerializationSink ;
106
- #[ cfg( target_arch= "wasm32" ) ]
106
+ #[ cfg( target_arch = "wasm32" ) ]
107
107
type SerializationSink = measureme:: ByteVecSink ;
108
108
109
109
type Profiler = measureme:: Profiler < SerializationSink > ;
@@ -604,7 +604,7 @@ pub fn duration_to_secs_str(dur: std::time::Duration) -> String {
604
604
}
605
605
606
606
// Memory reporting
607
- #[ cfg( all( unix, not( target_arch= "wasm32" ) ) ) ]
607
+ #[ cfg( all( unix, not( target_arch = "wasm32" ) ) ) ]
608
608
fn get_resident ( ) -> Option < usize > {
609
609
let field = 1 ;
610
610
let contents = fs:: read ( "/proc/self/statm" ) . ok ( ) ?;
@@ -614,7 +614,7 @@ fn get_resident() -> Option<usize> {
614
614
Some ( npages * 4096 )
615
615
}
616
616
617
- #[ cfg( all( windows, not( target_arch= "wasm32" ) ) ) ]
617
+ #[ cfg( all( windows, not( target_arch = "wasm32" ) ) ) ]
618
618
fn get_resident ( ) -> Option < usize > {
619
619
use std:: mem:: { self , MaybeUninit } ;
620
620
use winapi:: shared:: minwindef:: DWORD ;
@@ -633,7 +633,7 @@ fn get_resident() -> Option<usize> {
633
633
}
634
634
}
635
635
636
- #[ cfg( target_arch= "wasm32" ) ]
636
+ #[ cfg( target_arch = "wasm32" ) ]
637
637
fn get_resident ( ) -> Option < usize > {
638
638
None
639
639
}
0 commit comments