Skip to content

Commit 2f018e3

Browse files
committed
Adapt to the ppx_minidebug renaming entry_id -> scope_id
1 parent 4b4f6d7 commit 2f018e3

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

arrayjit/lib/utils.ml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ let get_local_debug_runtime =
341341
^ s
342342
in
343343
let hyperlink = get_global_arg ~default:"./" ~arg_name:"hyperlink_prefix" in
344-
let print_entry_ids = get_global_flag ~default:false ~arg_name:"logs_print_entry_ids" in
345-
let verbose_entry_ids = get_global_flag ~default:false ~arg_name:"logs_verbose_entry_ids" in
344+
let print_scope_ids = get_global_flag ~default:false ~arg_name:"logs_print_scope_ids" in
345+
let verbose_scope_ids = get_global_flag ~default:false ~arg_name:"logs_verbose_scope_ids" in
346346
let log_main_domain_to_stdout =
347347
get_global_flag ~default:false ~arg_name:"log_main_domain_to_stdout"
348348
in
@@ -398,8 +398,8 @@ let get_local_debug_runtime =
398398
let max_distance_factor =
399399
str_nonempty ~f:Int.of_string @@ get_global_arg ~default:"" ~arg_name:"diff_max_distance_factor"
400400
in
401-
let entry_id_pairs =
402-
let pairs_str = get_global_arg ~default:"" ~arg_name:"debug_entry_id_pairs" in
401+
let scope_id_pairs =
402+
let pairs_str = get_global_arg ~default:"" ~arg_name:"debug_scope_id_pairs" in
403403
if String.is_empty pairs_str then []
404404
else
405405
String.split pairs_str ~on:';'
@@ -421,30 +421,30 @@ let get_local_debug_runtime =
421421
let name = get_global_arg ~default:"debug" ~arg_name:"log_file_stem" in
422422
match (backend, filename) with
423423
| `Flushing, None ->
424-
Minidebug_runtime.prefixed_runtime_flushing ~time_tagged ~elapsed_times ~print_entry_ids
425-
~verbose_entry_ids ~global_prefix:name ~for_append:false ~log_level:original_log_level ()
424+
Minidebug_runtime.prefixed_runtime_flushing ~time_tagged ~elapsed_times ~print_scope_ids
425+
~verbose_scope_ids ~global_prefix:name ~for_append:false ~log_level:original_log_level ()
426426
| `Flushing, Some filename ->
427-
Minidebug_runtime.local_runtime_flushing ~time_tagged ~elapsed_times ~print_entry_ids
428-
~verbose_entry_ids ~global_prefix:name ~for_append:false ~log_level:original_log_level
427+
Minidebug_runtime.local_runtime_flushing ~time_tagged ~elapsed_times ~print_scope_ids
428+
~verbose_scope_ids ~global_prefix:name ~for_append:false ~log_level:original_log_level
429429
filename
430430
| `Printbox, None ->
431431
Minidebug_runtime.prefixed_runtime ~time_tagged ~elapsed_times ~location_format
432-
~print_entry_ids ~verbose_entry_ids ~global_prefix:name ~toc_entry
432+
~print_scope_ids ~verbose_scope_ids ~global_prefix:name ~toc_entry
433433
~toc_specific_hyperlink:"" ~highlight_terms ?truncate_children
434434
~exclude_on_path:Re.(str "env")
435435
~log_level:original_log_level ?snapshot_every_sec ()
436436
| `Printbox, Some filename ->
437-
Minidebug_runtime.local_runtime ~time_tagged ~elapsed_times ~location_format ~print_entry_ids
438-
~verbose_entry_ids ~global_prefix:name ~toc_flame_graph ~flame_graph_separation:50
437+
Minidebug_runtime.local_runtime ~time_tagged ~elapsed_times ~location_format ~print_scope_ids
438+
~verbose_scope_ids ~global_prefix:name ~toc_flame_graph ~flame_graph_separation:50
439439
~toc_entry ~for_append:false ~max_inline_sexp_length:120 ~hyperlink
440440
~toc_specific_hyperlink:"" ~highlight_terms ?truncate_children
441441
~exclude_on_path:Re.(str "env")
442442
?prune_upto ~backend:printbox_backend ~log_level:original_log_level ?snapshot_every_sec
443-
?prev_run_file ?diff_ignore_pattern ?max_distance_factor ~entry_id_pairs filename
443+
?prev_run_file ?diff_ignore_pattern ?max_distance_factor ~scope_id_pairs filename
444444
| `Db, None -> failwith "DB backend does not support no filename"
445445
| `Db, Some filename ->
446446
let db =
447-
Minidebug_db.debug_db_file ~time_tagged ~elapsed_times ~print_entry_ids ~verbose_entry_ids
447+
Minidebug_db.debug_db_file ~time_tagged ~elapsed_times ~print_scope_ids ~verbose_scope_ids
448448
~run_name:name ~log_level:original_log_level filename
449449
in
450450
fun () -> db

ocannl_config.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ debug_backend=db
157157
hyperlink_prefix=./
158158

159159
# For ppx_minidebug: whether to print IDs for log entries.
160-
logs_print_entry_ids=false
160+
logs_print_scope_ids=false
161161

162162
# For ppx_minidebug.
163-
logs_verbose_entry_ids=false
163+
logs_verbose_scope_ids=false
164164

165165
# For ppx_minidebug, whether logging from the main domain, `Domain.is_main ()`,
166166
# should be directed to stdout rather than to a file.
@@ -195,7 +195,7 @@ diff_max_distance_factor=
195195

196196
# For ppx_minidebug: semicolon-separated list of comma-separated entry IDs from
197197
# the previous and current run, that should be considered the same by the diffing algorithm.
198-
debug_entry_id_pairs=
198+
debug_scope_id_pairs=
199199

200200
# For ppx_minidebug: for generating file names. If empty, all logging will be done to stdout,
201201
# regardless of the value of `log_main_domain_to_stdout`.

ocannl_config.for_debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ hyperlink_prefix=vscode://file//wsl.localhost/ubuntu-24.04/home/lukstafi/ocannl/
22
debug_highlights=
33
time_tagged=clock
44
elapsed_times=milliseconds
5-
logs_print_entry_ids=false
6-
logs_verbose_entry_ids=false
5+
logs_print_scope_ids=false
6+
logs_verbose_scope_ids=false
77
toc_entry_minimal_depth=0
88
toc_entry_minimal_span=1ms
99
virtualize_max_visits=2

0 commit comments

Comments
 (0)