registerProfileFlags method
void
registerProfileFlags({})
Implementation
void registerProfileFlags({
String profilerCommand = 'devtools-profiler',
String artifactDir = '.dart_tool/profile',
String regionName = 'app.replay',
}) {
addOption(
'profile-profiler-command',
defaultsTo: profilerCommand,
help: 'Profiler executable.',
valueHelp: 'cmd',
);
addOption(
'profile-artifact-dir',
defaultsTo: artifactDir,
help: 'Artifact directory.',
valueHelp: 'path',
);
addFlag(
'profile-clean-artifact-dir',
defaultsTo: true,
help: 'Clean artifact dir first.',
);
addFlag(
'profile-region',
defaultsTo: true,
help: 'Mark the active replay window as a devtools profile region.',
);
addOption(
'profile-region-name',
defaultsTo: regionName,
help: 'Profile region name.',
valueHelp: 'name',
);
addOption(
'profile-timeout-seconds',
defaultsTo: '240',
help: 'Timeout.',
valueHelp: 'seconds',
);
}