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

Add limit on the file size that can be opened with Open XEL feature #23841

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

SakshiS-harma
Copy link
Contributor

@SakshiS-harma SakshiS-harma commented Jul 12, 2023

This PR works on fixing #23806.

For files within 100MB, no notification is posted.

For files from 100MB-1GB, a notification is posted:
image

For files more than 1GB, an error is thrown and file is not loaded:
image

@SakshiS-harma
Copy link
Contributor Author

Just to add context here, here are the numbers from testing the open XEL feature:

Immediately opens for 200KB file.
~ 2secs for 8MB file.
~ 15-18secs for a 250MB file.
~ 36-38secs for a 600MB file.
~ 1min for a 900MB file.
~ 3mins for 0.99GB file.

this._notificationService.error(nls.localize('FileTooLarge', "The file is too large to open in profiler. The profiler can open files that are less than 1GB."));
return false;
} else if (fileSize > fileOpenWarningSize) {
this._notificationService.info(nls.localize('LargeFileWait', "Loading the file might take a moment, because the file is large."));
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the experience like now? Is there a loading spinner already? This notification seems unnecessary if that's the case. Generally we don't try to guess whether an operation is going to take a long time - the closest we may do to something like that is show a progress notification after a short delay saying something like "Opening file..." to show that it's working in the background.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its a blank profiler screen for now. No loading spinner. But I can take that as a follow up workitem.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

That's unfortunate - alright then taking this for now and creating an issue to follow up post-release with for improving this seems fine. Thanks for verifying!

@SakshiS-harma SakshiS-harma merged commit 7bc05e5 into main Jul 14, 2023
7 of 8 checks passed
@SakshiS-harma SakshiS-harma deleted the sakshis/addFileSizeLimitOpenXEL branch July 14, 2023 03:32
SakshiS-harma added a commit that referenced this pull request Jul 14, 2023
…23841)

* Add limit on the file size that can be opened with Open XEL feature

* Add limit on the file size that can be opened and post a notification for large files

* Update wording

* Use FileService interface instead of fs to fix layering rules
kisantia pushed a commit that referenced this pull request Jul 14, 2023
…23841) (#23876)

* Add limit on the file size that can be opened with Open XEL feature

* Add limit on the file size that can be opened and post a notification for large files

* Update wording

* Use FileService interface instead of fs to fix layering rules
@SakshiS-harma
Copy link
Contributor Author

SakshiS-harma commented Jul 14, 2023

Created following work items as discussed:
#23883 Add loading indicator when opening XEL file in profiler
#23885 Profiler should minimize UI disruption while loading XEL file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants