1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-26 04:00:43 +03:00

Fix for Jira bug I7-2105

This commit is contained in:
Graham Nelson 2022-05-15 15:34:06 +01:00
parent 91a4a955d1
commit d08a9659b8
3 changed files with 24 additions and 21 deletions

View file

@ -356,6 +356,9 @@ void Main::switch(int id, int val, text_stream *arg, void *state) {
void Main::bareword(int id, text_stream *opt, void *state) {
if (Str::is_whitespace(opt) == FALSE) {
if (Str::get_last_char(opt) == FOLDER_SEPARATOR)
Errors::fatal_with_text(
"to compile a project in a directory, use '-project %S'", opt);
filename *F = Filenames::from_text(opt);
if (Supervisor::set_I7_source(F) == FALSE)
Errors::fatal_with_text("unknown command line argument: %S (see -help)", opt);

View file

@ -1,6 +1,6 @@
Total memory consumption was 123345K = 120 MB
---- was used for 2044307 objects, in 362626 frames in 0 x 800K = 0K = 0 MB:
---- was used for 2044505 objects, in 362824 frames in 0 x 800K = 0K = 0 MB:
33.1% inter_tree_node_array 58 x 8192 = 475136 objects, 41813824 bytes
20.5% text_stream_array 4603 x 100 = 460300 objects, 25924096 bytes
@ -21,6 +21,7 @@ Total memory consumption was 123345K = 120 MB
1.1% match_trie_array 11 x 1000 = 11000 objects, 1496352 bytes
1.1% inter_symbols_table 26588 objects, 1488928 bytes
1.0% i6_schema_array 23 x 100 = 2300 objects, 1380736 bytes
1.0% scan_directory 314 objects, 1296192 bytes
1.0% inter_package 26588 objects, 1276224 bytes
0.8% map_data 670 objects, 1125600 bytes
0.8% id_body 942 objects, 1077648 bytes
@ -32,7 +33,6 @@ Total memory consumption was 123345K = 120 MB
0.6% individual_form 2562 objects, 860832 bytes
0.6% inter_schema_node 8920 objects, 856320 bytes
0.5% unary_predicate_array 16 x 1000 = 16000 objects, 640512 bytes
0.3% scan_directory 116 objects, 478848 bytes
0.3% local_variable_array 47 x 100 = 4700 objects, 452704 bytes
0.3% verb_usage 1128 objects, 388032 bytes
0.2% rule 470 objects, 368480 bytes
@ -255,5 +255,5 @@ Total memory consumption was 123345K = 120 MB
---- code generation workspace for objects 1336 bytes in 4 claims
0.2% emitter array storage 280032 bytes in 1997 claims
-145.-5% was overhead - -183807584 bytes = -179499K = -175 MB
-146.-1% was overhead - -184624928 bytes = -180297K = -176 MB

View file

@ -1,37 +1,37 @@
100.0% in inform7 run
70.7% in compilation to Inter
51.2% in //Sequence::undertake_queued_tasks//
4.7% in //MajorNodes::pre_pass//
70.8% in compilation to Inter
50.8% in //Sequence::undertake_queued_tasks//
4.6% in //MajorNodes::pre_pass//
3.2% in //MajorNodes::pass_1//
1.9% in //ImperativeDefinitions::assess_all//
1.4% in //RTKindConstructors::compile//
1.2% in //RTPhrasebook::compile_entries//
1.0% in //Sequence::lint_inter//
0.6% in //MajorNodes::pass_2//
0.6% in //World::stage_V//
1.7% in //RTPhrasebook::compile_entries//
1.5% in //RTKindConstructors::compile//
1.1% in //Sequence::lint_inter//
0.5% in //MajorNodes::pass_2//
0.5% in //Sequence::undertake_queued_tasks//
0.5% in //World::stage_V//
0.4% in //ImperativeDefinitions::compile_first_block//
0.4% in //Sequence::undertake_queued_tasks//
0.3% in //Sequence::undertake_queued_tasks//
0.2% in //CompletionModule::compile//
0.2% in //RTKindConstructors::compile_permissions//
0.1% in //InferenceSubjects::emit_all//
0.1% in //Task::make_built_in_kind_constructors//
0.1% in //Understand::traverse//
0.1% in //World::stages_II_and_III//
2.3% not specifically accounted for
26.5% in running Inter pipeline
10.1% in step 14/15: generate inform6 -> auto.inf
6.0% in step 6/15: make-synoptic-module
5.6% in step 5/15: load-binary-kits
1.5% in step 9/15: make-identifiers-unique
2.0% not specifically accounted for
26.4% in running Inter pipeline
10.2% in step 14/15: generate inform6 -> auto.inf
5.8% in step 6/15: make-synoptic-module
5.7% in step 5/15: load-binary-kits
1.6% in step 9/15: make-identifiers-unique
0.5% in step 4/15: compile-splats
0.4% in step 12/15: eliminate-redundant-operations
0.4% in step 4/15: compile-splats
0.3% in step 7/15: shorten-wiring
0.4% in step 7/15: shorten-wiring
0.3% in step 8/15: detect-indirect-calls
0.2% in step 11/15: eliminate-redundant-labels
0.1% in step 10/15: reconcile-verbs
0.1% in step 2/15: parse-insertions
0.1% in step 3/15: resolve-conditional-compilation
0.7% not specifically accounted for
0.5% not specifically accounted for
2.3% in supervisor
0.4% not specifically accounted for