File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -161,16 +161,6 @@ pub struct SelfProfiler {
161
161
current_timer : Instant ,
162
162
}
163
163
164
- pub struct ProfilerActivity < ' a > ( ProfileCategory , & ' a mut SelfProfiler ) ;
165
-
166
- impl < ' a > Drop for ProfilerActivity < ' a > {
167
- fn drop ( & mut self ) {
168
- let ProfilerActivity ( category, profiler) = self ;
169
-
170
- profiler. end_activity ( * category) ;
171
- }
172
- }
173
-
174
164
impl SelfProfiler {
175
165
pub fn new ( ) -> SelfProfiler {
176
166
let mut profiler = SelfProfiler {
@@ -281,10 +271,4 @@ impl SelfProfiler {
281
271
282
272
fs:: write ( "self_profiler_results.json" , json) . unwrap ( ) ;
283
273
}
284
-
285
- pub fn record_activity < ' a > ( & ' a mut self , category : ProfileCategory ) -> ProfilerActivity < ' a > {
286
- self . start_activity ( category) ;
287
-
288
- ProfilerActivity ( category, self )
289
- }
290
- }
274
+ }
You can’t perform that action at this time.
0 commit comments