Skip to content

Conversation

@ltratt
Copy link
Contributor

@ltratt ltratt commented Apr 19, 2025

For tests, having full pathnames isn't much fun. This commit allows -DYK_HL_DEBUG=2 to insert only leaf names. For humans this isn't very useful, but for test cases it is.

With -DYK_HL_DEBUG=1 (or just -DYK_HL_DEBUG):

yk-jit-event: start-tracing: /path/to/test/while_loop.lua:23: while x <= 6 do

and with -DYK_HL_DEBUG=2:

yk-jit-event: start-tracing: while_loop.lua:23: while x <= 6 do

For tests, having full pathnames isn't much fun. This commit allows
`-DYK_HL_DEBUG=2` to insert only leaf names. For humans this isn't very
useful, but for test cases it is.

With `-DYK_HL_DEBUG=1` (or just `-DYK_HL_DEBUG`):

```
yk-jit-event: start-tracing: /path/to/test/while_loop.lua:23: while x <= 6 do
```

and with `-DYK_HL_DEBUG=2`:

```
yk-jit-event: start-tracing: while_loop.lua:23: while x <= 6 do
```
@vext01 vext01 added this pull request to the merge queue Apr 19, 2025
Merged via the queue into ykjit:main with commit ea366a5 Apr 19, 2025
2 checks passed
@ltratt ltratt deleted the leaf_debug branch April 23, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants