-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ Breaking Change Request ] Remove support for Metrics
from dart:developer
#50231
Comments
@bkonyi - I fear this will indirectly break the support we just added in #49062 to expose internal metrics like memory usage and capacity numbers, correct? Will we offer any alternative to that other than the current logic we use in dart2js? (where we launch a the service protocol and use a vm service client within the process to read this data). |
No, this shouldn't impact internal memory statistics accessed via the service protocol's private metric RPC. If I recall correctly, we ended up discovering that the native metrics weren't being exposed properly by #49062 anyway since they are defined in native code, not in the |
Thanks for clarifying - I thought they had been exposed and that we just didn't get around to convert our logic to use it. |
//cc @zanderso |
@sigmundch do you feel comfortable with this now that @bkonyi has addressed your concerns? |
Yes, thanks for checking. sgtm |
Thanks for the response @sigmundch, with that, @vsmenon, @grouma, @Hixie can you take a look? |
@a-siva @kenzieschmoll - do you both lgtm? |
lgtm |
fine by me since it's already broken anyway. did anyone file a bug asking for it to be fixed? |
DevTools doesn't use Metrics for anything. LGTM. |
@itsjustkevin is it safe to assume this can go forward? :-) |
Nope, I don't think anyone really even noticed it was broken in the first place. |
@grouma opinions on this breaking change? |
I'm not aware of any usage from the ACX and or debugging side. |
See #50231 Change-Id: I8f5196f90dd7a03c08d413d381bf093cc1f309eb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/272381 Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
@bkonyi I see this was merged in November and would like to close this, but don't see a changelog entry for this. Am I just missing it? |
Hm, thought I had included a changelog entry, but looks like I haven't. I'll add one. |
Thanks @bkonyi! Feel free to close the issue when the changelog entry is added. |
Changelog updated in https://dart-review.googlesource.com/c/sdk/+/278531. Closing this issue. |
Since the early days of the VM service protocol, the Dart VM has provided APIs for visualizing instantaneous metrics in graphs within Observatory through
dart:developer
, exposed through theMetrics
interface.Rationale:
This feature has been broken for quite some time in Observatory as we lost the ability to display charts and graphs as a consequence of the Dart 2.0 and null-safety migrations. DevTools also does not currently support displaying metrics, so it seems like a good time to trim an unused API.
Impact:
Deprecating and removing the
Metrics
APIs should have little to no impact as they haven't worked in quite some time. There's no obvious uses in g3, and there have been no issues filed regarding the broken Observatory functionality in the years since the breakage occurred. There's also no breakages to the VM service protocol as a result of this change, as the existing metrics RPCs are private and were never publicly exposed.Proposal:
Deprecate
Metrics
,Metric
,Counter
, andGauge
, and schedule them for removal in Dart 3.0.cc @a-siva @kenzieschmoll
The text was updated successfully, but these errors were encountered: