4ef857e5d8
Under certain circumstances we see that gen_snapshot spends significant portion of time in kernel. This happens with --trace_precompiler_to option specified on the command line. This change reduces number of I/O operations required to write --trace_precompiler_to output by adding a memory buffer for the whole output. TEST=pkg/vm_snapshot_analysis/test/precompiler_trace_test.dart Change-Id: I7c2b3fbf1f6b6bee950c2d23809e68e4698f84f4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175780 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>