| 645 | } |
| 646 | |
| 647 | void TraceEvent::UpdateDuration(const MicrosecondsInt64& now, |
| 648 | const MicrosecondsInt64& thread_now) { |
| 649 | DCHECK(duration_ == -1); |
| 650 | duration_ = now - timestamp_; |
| 651 | thread_duration_ = thread_now - thread_timestamp_; |
| 652 | } |
| 653 | |
| 654 | namespace { |
| 655 | // Escape the given string using JSON rules. |
no outgoing calls
no test coverage detected