(state: LoggingState)
| 387 | function processImpressionsForAdHocAnalysisDebugLog(states: LoggingState[]): void { |
| 388 | for (const state of states) { |
| 389 | const buildVe = (state: LoggingState): AdHocAnalysisVisualElement => { |
| 390 | const ve: AdHocAnalysisVisualElement = { |
| 391 | ve: VisualElements[state.config.ve], |
| 392 | veid: state.veid, |
| 393 | width: state.size?.width, |
| 394 | height: state.size?.height, |
| 395 | context: state.config.context, |
| 396 | }; |
| 397 | deleteUndefinedFields(ve); |
| 398 | if (state.parent) { |
| 399 | ve.parent = buildVe(state.parent); |
| 400 | } |
| 401 | return ve; |
| 402 | }; |
| 403 | const entry = {...buildVe(state), interactions: [], time: Date.now() - sessionStartTime}; |
| 404 | adHocAnalysisEntries.set(state.veid, entry); |
| 405 | maybeLogDebugEvent(entry); |
no test coverage detected