@@ -350,17 +350,14 @@ final class Event {
350350 /// [libraryCycleLineCounts] - json encoded percentile values indicating the
351351 /// number of lines of code in all of the files in a single library cycle.
352352 ///
353- /// [contextsFromBothFiles] - the number of contexts that were created because
354- /// of both a package config and an analysis options file.
355- ///
356- /// [contextsFromOptionsFiles] - the number of contexts that were created
357- /// because of an analysis options file.
358- ///
359- /// [contextsFromPackagesFiles] - the number of contexts that were created
360- /// because of a package config file.
361- ///
362- /// [contextsWithoutFiles] - the number of contexts that were created because
363- /// of the lack of either a package config or an analysis options file.
353+ /// [contextWorkspaceType] - json encoded list with the total number of
354+ /// workspaces of each type for all of the contexts:
355+ /// - index 0: Blaze, GN or other workspace count
356+ /// - index 1: Package workspace count
357+ /// - index 2: Pub workspace count
358+ ///
359+ /// [numberOfPackagesInWorkspace] - json encoded percentile values for the
360+ /// number of packages in the Pub workspaces.
364361 Event .contextStructure ({
365362 required int immediateFileCount,
366363 required int immediateFileLineCount,
@@ -371,10 +368,8 @@ final class Event {
371368 required int transitiveFileUniqueLineCount,
372369 String libraryCycleLibraryCounts = '' ,
373370 String libraryCycleLineCounts = '' ,
374- int contextsFromBothFiles = 0 ,
375- int contextsFromOptionsFiles = 0 ,
376- int contextsFromPackagesFiles = 0 ,
377- int contextsWithoutFiles = 0 ,
371+ String contextWorkspaceType = '' ,
372+ String numberOfPackagesInWorkspace = '' ,
378373 }) : this ._(
379374 eventName: DashEvent .contextStructure,
380375 eventData: {
@@ -387,10 +382,8 @@ final class Event {
387382 'transitiveFileUniqueLineCount' : transitiveFileUniqueLineCount,
388383 'libraryCycleLibraryCounts' : libraryCycleLibraryCounts,
389384 'libraryCycleLineCounts' : libraryCycleLineCounts,
390- 'contextsFromBothFiles' : contextsFromBothFiles,
391- 'contextsFromOptionsFiles' : contextsFromOptionsFiles,
392- 'contextsFromPackagesFiles' : contextsFromPackagesFiles,
393- 'contextsWithoutFiles' : contextsWithoutFiles,
385+ 'contextWorkspaceType' : contextWorkspaceType,
386+ 'numberOfPackagesInWorkspace' : numberOfPackagesInWorkspace,
394387 },
395388 );
396389
0 commit comments