Skip to content

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

Merged
narsaynorath merged 3 commits intomasterfrom
nar/chore/add-proguard-file-size-to-span
Feb 21, 2023
Merged

chore(view-hierarchy): Add proguard file size to span#44826
narsaynorath merged 3 commits intomasterfrom
nar/chore/add-proguard-file-size-to-span

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
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