如何在 Mac 上分析 Dart CLI 应用程序?

How to profile a Dart CLI app on Mac?

如何在 MacOS 上配置 (CPU) Dart CLI 应用程序?对于 Linux,我可以按照此处所述使用 'perf' - https://code.google.com/p/dart/wiki/Profiling,但 MacOS 没有 'perf'。

VM 中内置的 Observatory 可能会满足您的需要https://www.dartlang.org/tools/observatory/