diff options
author | Mike Cailean <mcailean@codeaurora.org> | 2020-07-13 09:30:17 -0700 |
---|---|---|
committer | Mike Cailean <mcailean@codeaurora.org> | 2020-10-15 09:22:32 -0700 |
commit | d20c045d5fb2fc675166a37a6f6fd098d81dddcb (patch) | |
tree | 5e88eeb7cdd1f63cef30d8ed71dbddc04f541b76 /core/LocApiBase.cpp | |
parent | 8838a5166dcf86058726a002afb6b3f15e4bc150 (diff) |
Framework for measuring latency
Building an approach to instrumenting and tracking
the processing latency distribution within the Loc
Tech GNSS system
CRs-fixed: 2684481
Change-Id: I469546fbb02b190e9cb82b7b94cbb63771844fd6
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 3f15d69..207849c 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -561,6 +561,12 @@ void LocApiBase::reportGnssConfig(uint32_t sessionId, const GnssConfig& gnssConf TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportGnssConfigEvent(sessionId, gnssConfig)); } +void LocApiBase::reportLatencyInfo(GnssLatencyInfo& gnssLatencyInfo) +{ + // loop through adapters, and deliver to the first handling adapter. + TO_ALL_LOCADAPTERS(mLocAdapters[i]->reportLatencyInfoEvent(gnssLatencyInfo)); +} + enum loc_api_adapter_err LocApiBase:: open(LOC_API_ADAPTER_EVENT_MASK_T /*mask*/) DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS) |