| 640 | } |
| 641 | |
| 642 | void LatestEventCache::setLatestError(const TraceEventFields& contents) { |
| 643 | if (TraceEvent::isNetworkThread()) { // The latest event cache doesn't track errors that happen on other threads |
| 644 | latestErrors[getAddressIndex()] = contents; |
| 645 | } |
| 646 | } |
| 647 | |
| 648 | TraceEventFields LatestEventCache::getLatestError() { |
| 649 | return latestErrors[getAddressIndex()]; |
no test coverage detected