MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / buildVe

Function buildVe

front_end/ui/visual_logging/Debugging.ts:389–402  ·  view source on GitHub ↗
(state: LoggingState)

Source from the content-addressed store, hash-verified

387function 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);

Calls 1

deleteUndefinedFieldsFunction · 0.85

Tested by

no test coverage detected