IMPORTANT: memory snapshots should not be requested from external users because they may contain PII.
If a user reports that the process dart:analysis_server.dart.snapshot
takes too much memory, and the issue is hard to reproduce, you may want to request memory snapshots from the user.
Ask user to provide memory footprint for the process dart:analysis_server.dart.snapshot
. If there are many instances of the process, ask for the biggest memory footprint among the instances.
Based on the reported and expected values, construct auto-snapshotting argument. See example in the test file, the constant _autosnapshottingArg
.
See explanation of parameters in documentation for AutoSnapshottingConfig.
Pass the created argument to the user and instruct them to configure analyzer.
Dart: Analyzer Additional Args
Ask user to provide the collected snapshots and analyze them.
TODO (polina-c): link DevTools documentation