Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
deploy: ce0450c
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanjoi committed Jan 4, 2024
1 parent eedb6cc commit 6117f5b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
15 changes: 15 additions & 0 deletions debugging/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,21 @@ <h2 id="tracing"><a class="header" href="#tracing">Tracing</a></h2>
<pre><code class="language-bash">RSPACK_PROFILE=TRACE=layer=logger rspack build
# filter for an event
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=rspack_core::compiler::compilation' rspack build
# with logger level
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=rspack_core::compiler::compilation=info' rspack build
# filter logs across multiple modules
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=rspack_core::compiler::compilation,rspack_core::build_chunk_graph::code_splitter' rspack build
# [fn_name] will show:
# - all functions calls to `fn_name`
# - the arguments(except for these in the `skip` list)
# - everything until this function returns
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[build_chunk_graph]' rspack build
# compilation::chunk_asset is a custom instrument name
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[compilation:chunk_asset]' rspack build
# log a specific function by their arguments
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[compilation:chunk_asset{filename=&quot;main\.js&quot;}]' rspack build
# It support regexp expression
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[compilation:chunk_asset{filename=&quot;.*\.js&quot;}]' rspack build
# disable ansi color escape codes
NO_COLOR=1 RSPACK_PROFILE=TRACE=layer=logger rspack build
</code></pre>
Expand Down
15 changes: 15 additions & 0 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,21 @@ <h2 id="tracing"><a class="header" href="#tracing">Tracing</a></h2>
<pre><code class="language-bash">RSPACK_PROFILE=TRACE=layer=logger rspack build
# filter for an event
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=rspack_core::compiler::compilation' rspack build
# with logger level
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=rspack_core::compiler::compilation=info' rspack build
# filter logs across multiple modules
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=rspack_core::compiler::compilation,rspack_core::build_chunk_graph::code_splitter' rspack build
# [fn_name] will show:
# - all functions calls to `fn_name`
# - the arguments(except for these in the `skip` list)
# - everything until this function returns
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[build_chunk_graph]' rspack build
# compilation::chunk_asset is a custom instrument name
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[compilation:chunk_asset]' rspack build
# log a specific function by their arguments
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[compilation:chunk_asset{filename=&quot;main\.js&quot;}]' rspack build
# It support regexp expression
RSPACK_PROFILE='TRACE=layer=logger&amp;filter=[compilation:chunk_asset{filename=&quot;.*\.js&quot;}]' rspack build
# disable ansi color escape codes
NO_COLOR=1 RSPACK_PROFILE=TRACE=layer=logger rspack build
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 6117f5b

Please sign in to comment.