Lines Matching refs:spans
46 spans: Mutex<HashMap<Id, SpanLineBuilder>>, field
168 spans: Default::default(), in default()
241 let mut spans = self.spans.lock().unwrap(); in new_span() localVariable
246 while let Some(parent) = next_parent.and_then(|p| spans.get(p)) { in new_span()
253 spans.insert(id.clone(), span); in new_span()
258 let mut spans = self.spans.lock().unwrap(); in record() localVariable
259 if let Some(span) = spans.get_mut(span) { in record()
283 let spans = self.spans.lock().unwrap(); in enter() localVariable
285 if let Some(span) = spans.get(id) { in enter()
292 .and_then(|id| spans.get(id)) in enter()
336 let spans = self.spans.lock().unwrap(); in exit() localVariable
337 if let Some(span) = spans.get(id) { in exit()
361 let spans = self.spans.lock().unwrap(); in event() localVariable
362 let current = self.current_id().and_then(|id| spans.get(&id)); in event()
394 let mut spans = self.spans.lock().unwrap(); in clone_span() localVariable
395 if let Some(span) = spans.get_mut(id) { in clone_span()
402 let mut spans = self.spans.lock().unwrap(); in try_close() localVariable
403 if spans.contains_key(&id) { in try_close()
404 if spans.get(&id).unwrap().ref_count == 1 { in try_close()
405 let span = spans.remove(&id).unwrap(); in try_close()
411 spans.get_mut(&id).unwrap().ref_count -= 1; in try_close()
453 .field("spans", &self.spans) in fmt()