Skip to content

Commit

Permalink
Bug 1918166: Extend js::Metrics to also record telemetry to glean wit…
Browse files Browse the repository at this point in the history
…hout a legacy mirror. r=tcampbell

Differential Revision: https://phabricator.services.mozilla.com/D229005

UltraBlame original commit: 261fcdc7813b8c7d06d3feb39001fc40909eaede
  • Loading branch information
marco-c committed Nov 16, 2024
1 parent 6a621c7 commit a8e8048
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
24 changes: 23 additions & 1 deletion js/public/friend/UsageStatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ JSObject
;
#
define
FOR_EACH_JS_METRIC
FOR_EACH_JS_LEGACY_METRIC
(
_
)
Expand Down Expand Up @@ -310,6 +310,28 @@ TimeDuration_US
)
#
define
FOR_EACH_JS_GLEAN_METRIC
(
_
)
#
define
FOR_EACH_JS_METRIC
(
_
)
\
FOR_EACH_JS_LEGACY_METRIC
(
_
)
\
FOR_EACH_JS_GLEAN_METRIC
(
_
)
#
define
ENUM_DEF
(
NAME
Expand Down
11 changes: 2 additions & 9 deletions js/xpconnect/src/XPCJSRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14634,7 +14634,7 @@ sample
\
break
;
FOR_EACH_JS_METRIC
FOR_EACH_JS_LEGACY_METRIC
(
CASE_ACCUMULATE
)
Expand All @@ -14643,14 +14643,7 @@ undef
CASE_ACCUMULATE
default
:
MOZ_CRASH
(
"
Bad
metric
id
"
)
break
;
}
switch
Expand Down

0 comments on commit a8e8048

Please sign in to comment.