Add timeout flags to the cmdline usage
Bug: 202830861
Test: m
Change-Id: I37a63f6c0d2ebf71db544de5fb8b59d5c8314f05
diff --git a/odrefresh/odrefresh_main.cc b/odrefresh/odrefresh_main.cc
index 7cb770c..4403d9c 100644
--- a/odrefresh/odrefresh_main.cc
+++ b/odrefresh/odrefresh_main.cc
@@ -226,10 +226,12 @@
}
void TargetOptionsHelp() {
- UsageError("--use-compilation-os=<CID> Run compilation in the VM with the given CID.");
- UsageError(" (0 = do not use VM, -1 = use composd's VM)");
+ UsageError("--use-compilation-os=<CID> Run compilation in the VM with the given CID.");
+ UsageError(" (0 = do not use VM, -1 = use composd's VM)");
UsageError(
- "--dalvik-cache=<DIR> Write artifacts to .../<DIR> rather than .../dalvik-cache");
+ "--dalvik-cache=<DIR> Write artifacts to .../<DIR> rather than .../dalvik-cache");
+ UsageError("--max-execution-seconds=<N> Maximum timeout of all compilation combined");
+ UsageError("--max-child-process-seconds=<N> Maximum timeout of each compilation task");
}
int InitializeConfig(int argc, char** argv, OdrConfig* config) {