@@ -99,11 +99,11 @@ use parking_lot::RwLock;
9999
100100/// MmapSerializatioSink is faster on macOS and Linux
101101/// but FileSerializationSink is faster on Windows
102- #[ cfg( all( not( windows) , not( target_arch= "wasm32" ) ) ) ]
102+ #[ cfg( all( not( windows) , not( target_arch = "wasm32" ) ) ) ]
103103type SerializationSink = measureme:: MmapSerializationSink ;
104- #[ cfg( all( windows, not( target_arch= "wasm32" ) ) ) ]
104+ #[ cfg( all( windows, not( target_arch = "wasm32" ) ) ) ]
105105type SerializationSink = measureme:: FileSerializationSink ;
106- #[ cfg( target_arch= "wasm32" ) ]
106+ #[ cfg( target_arch = "wasm32" ) ]
107107type SerializationSink = measureme:: ByteVecSink ;
108108
109109type Profiler = measureme:: Profiler < SerializationSink > ;
@@ -604,7 +604,7 @@ pub fn duration_to_secs_str(dur: std::time::Duration) -> String {
604604}
605605
606606// Memory reporting
607- #[ cfg( all( unix, not( target_arch= "wasm32" ) ) ) ]
607+ #[ cfg( all( unix, not( target_arch = "wasm32" ) ) ) ]
608608fn get_resident ( ) -> Option < usize > {
609609 let field = 1 ;
610610 let contents = fs:: read ( "/proc/self/statm" ) . ok ( ) ?;
@@ -614,7 +614,7 @@ fn get_resident() -> Option<usize> {
614614 Some ( npages * 4096 )
615615}
616616
617- #[ cfg( all( windows, not( target_arch= "wasm32" ) ) ) ]
617+ #[ cfg( all( windows, not( target_arch = "wasm32" ) ) ) ]
618618fn get_resident ( ) -> Option < usize > {
619619 use std:: mem:: { self , MaybeUninit } ;
620620 use winapi:: shared:: minwindef:: DWORD ;
@@ -633,7 +633,7 @@ fn get_resident() -> Option<usize> {
633633 }
634634}
635635
636- #[ cfg( target_arch= "wasm32" ) ]
636+ #[ cfg( target_arch = "wasm32" ) ]
637637fn get_resident ( ) -> Option < usize > {
638638 None
639639}
0 commit comments