@@ -23,7 +23,7 @@ class HLL::Compiler does HLL::Backend::Default {
23
23
@ ! stages := nqp :: split (' ' , ' start parse ast ' ~ $ ! backend . stages());
24
24
25
25
# Command options and usage.
26
- @ ! cmdoptions := nqp :: split (' ' , ' e=s help|h target=s trace|t=s encoding=s output|o=s source-name=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile=s? profile-compile=s? profile-filename =s profile-stage=s repl-mode=s'
26
+ @ ! cmdoptions := nqp :: split (' ' , ' e=s help|h target=s trace|t=s encoding=s output|o=s source-name=s combine version|v show-config verbose-config|V stagestats=s? ll-exception rxtrace nqpevent=s profile=s? profile-compile=s? profile-kind =s profile-stage=s repl-mode=s'
27
27
# ?if js
28
28
~ ' substagestats beautify nqp-runtime=s perl6-runtime=s libpath=s shebang execname=s source-map'
29
29
# ?endif
@@ -164,7 +164,7 @@ class HLL::Compiler does HLL::Backend::Default {
164
164
if nqp ::existskey(% adverbs , ' profile-compile' ) {
165
165
$ output := $ ! backend . run_profiled({
166
166
self . compile($ code , : compunit_ok(1 ), | % adverbs );
167
- }, % adverbs <profile-compile >, % adverbs <profile-filename >);
167
+ }, % adverbs <profile-compile >, % adverbs <profile-kind >);
168
168
}
169
169
else {
170
170
$ output := self . compile($ code , : compunit_ok(1 ), | % adverbs );
@@ -179,7 +179,7 @@ class HLL::Compiler does HLL::Backend::Default {
179
179
180
180
if nqp ::existskey(% adverbs , ' profile' ) {
181
181
$ output := $ ! backend . run_profiled({ $ output (| @ args ) },
182
- % adverbs <profile >, % adverbs <profile-filename >);
182
+ % adverbs <profile >, % adverbs <profile-kind >);
183
183
}
184
184
elsif % adverbs <trace > {
185
185
$ output := $ ! backend . run_traced(% adverbs <trace >, { $ output (| @ args ) });
@@ -488,7 +488,7 @@ class HLL::Compiler does HLL::Backend::Default {
488
488
}
489
489
490
490
$ result := % adverbs <profile-stage > eq $ _
491
- ?? $ ! backend . run_profiled(& run , ' ' , % adverbs <profile-filename >)
491
+ ?? $ ! backend . run_profiled(& run , % adverbs < profile > , % adverbs <profile-kind >)
492
492
!! run ();
493
493
494
494
my $ diff := nqp ::time_n() - $ timestamp ;
0 commit comments