@@ -533,15 +533,12 @@ protected void printHelp(OptionCategory maxCategory) {
533
533
// "- : program read from stdin (default; interactive mode if a tty)\n" +
534
534
"arg ...: arguments passed to program in sys.argv[1:]\n " +
535
535
"\n " +
536
- "Arguments specific to GraalPython.\n " +
537
- "--show-version : print the Python version number and continue.\n " +
538
- "-CC : run the C compiler used for generating GraalPython C extensions.\n " +
539
- " All following arguments are passed to the compiler.\n " +
540
- "-LD : run the linker used for generating GraalPython C extensions.\n " +
541
- " All following arguments are passed to the linker.\n " +
542
- "-debug-perf : Enable tracing of Truffle compilations and its warnings\n " +
543
- "-dump : Enable dumping of compilation graphs to IGV\n " +
544
- "-compile-truffle-immediately : Start compiling on first invocation and throw compilation exceptions\n " +
536
+ "Arguments specific to GraalPython:\n " +
537
+ "--show-version : print the Python version number and continue.\n " +
538
+ "-CC : run the C compiler used for generating GraalPython C extensions.\n " +
539
+ " All following arguments are passed to the compiler.\n " +
540
+ "-LD : run the linker used for generating GraalPython C extensions.\n " +
541
+ " All following arguments are passed to the linker.\n " +
545
542
"\n " +
546
543
"Other environment variables:\n " +
547
544
"PYTHONSTARTUP: file executed on interactive startup (no default)\n " +
@@ -555,6 +552,12 @@ protected void printHelp(OptionCategory maxCategory) {
555
552
" as specifying the -R option: a random value is used to seed the hashes of\n " +
556
553
" str, bytes and datetime objects. It can also be set to an integer\n " +
557
554
" in the range [0,4294967295] to get hash values with a predictable seed." );
555
+ if (maxCategory .compareTo (OptionCategory .DEBUG ) >= 0 ) {
556
+ print ("\n GraalPython performance debugging options:\n " +
557
+ "-debug-perf : Enable tracing of Truffle compilations and its warnings\n " +
558
+ "-dump : Enable dumping of compilation graphs to IGV\n " +
559
+ "-compile-truffle-immediately : Start compiling on first invocation and throw compilation exceptions" );
560
+ }
558
561
}
559
562
560
563
@ Override
0 commit comments