Skip to content
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

chore(view-hierarchy): Add proguard file size to span #44826

Merged
merged 3 commits into from
Feb 21, 2023

Conversation

narsaynorath
Copy link
Member

Tracking the file size so we can understand its impact on timing

Tracking the file size so we can understand its impact on timing
@narsaynorath narsaynorath requested a review from a team February 17, 2023 15:04
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 17, 2023
dif_paths = ProjectDebugFile.difcache.fetch_difs(project, [uuid], features=["mapping"])
debug_file_path = dif_paths.get(uuid)
if debug_file_path is None:
return

proguard_file_size_in_mb = os.path.getsize(debug_file_path) / (1024 * 1024.0)
Copy link
Contributor

@edwardgou-sentry edwardgou-sentry Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wrap this in a try catch just in case, even if we're confident it wont fail? I think os.path.getsize might throw an error if it cant reach the file for whatever reason

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good point, I'll do that. Thanks for the suggestion

@narsaynorath narsaynorath merged commit 8d7f16b into master Feb 21, 2023
@narsaynorath narsaynorath deleted the nar/chore/add-proguard-file-size-to-span branch February 21, 2023 15:03
andriisoldatenko pushed a commit that referenced this pull request Feb 21, 2023
Tracking the file size so we can understand its impact on timing
andriisoldatenko pushed a commit that referenced this pull request Feb 24, 2023
Tracking the file size so we can understand its impact on timing
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants