fix(core): Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used.#58929
Closed
arielbackenroth wants to merge 1 commit intoangular:mainfrom
Closed
fix(core): Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used.#58929arielbackenroth wants to merge 1 commit intoangular:mainfrom
arielbackenroth wants to merge 1 commit intoangular:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
01785c0 to
bc47b73
Compare
bc47b73 to
c95cd35
Compare
c95cd35 to
5346069
Compare
5346069 to
d8168c3
Compare
d8168c3 to
914c9b4
Compare
914c9b4 to
e08ed73
Compare
5fddb56 to
bef4965
Compare
bef4965 to
8ab9ed8
Compare
… it once it's been used. Provide a callback to the TracingService implementation when a Snapshot can be disposed. The underlying tracing implementation may use refcounting and needs to release resources to enable the trace to complete. While change detection uses the snapshot for exactly one callback, after render runs multiple hooks in the sequence so we need a more predictable way to indicate that the snapshot can be finalized.s
8ab9ed8 to
92d7a5a
Compare
crisbeto
approved these changes
Nov 27, 2024
Member
|
This PR was merged into the repository by commit 3b76536. The changes were merged into the following branches: main, 19.0.x |
pkozlowski-opensource
pushed a commit
that referenced
this pull request
Nov 27, 2024
… it once it's been used. (#58929) Provide a callback to the TracingService implementation when a Snapshot can be disposed. The underlying tracing implementation may use refcounting and needs to release resources to enable the trace to complete. While change detection uses the snapshot for exactly one callback, after render runs multiple hooks in the sequence so we need a more predictable way to indicate that the snapshot can be finalized.s PR Close #58929
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Fix for tracing service to explicitly manage lifecycle
What is the current behavior?
Currently our experimental implementation of this service fails because it attempts to run snapshots that have been previously resumed. Need to explicitly manage releasing ref counts and enable snapshots to be used multiple times.
Issue Number: N/A
What is the new behavior?
Have Angular explicitly call dispose to release resources (refcounts) by the tracing.
Does this PR introduce a breaking change?
Other information