Skip to content

Commit e7cf667

Browse files
authored
Update tlparse version to 0.4.0 (#139)
Update tlparse version to 0.4.0 because we have breaking change in this version. The signature of `parse_path(path: &PathBuf, config: &ParseConfig)` changed (from `ParseConfig` to `&ParseConfig`).
1 parent 5ee697b commit e7cf667

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tlparse"
3-
version = "0.3.45"
3+
version = "0.4.0"
44
edition = "2021"
55
authors = ["Edward Z. Yang <[email protected]>"]
66
description = "Parse TORCH_LOG logs produced by PyTorch torch.compile"

src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,6 @@ fn convert_node_mappings_to_line_numbers(
14171417
.get("version")
14181418
.and_then(|v| v.as_f64())
14191419
.unwrap_or(1.0) as i64;
1420-
#[cfg(debug_assertions)]
1421-
println!("Inductor Provenance Tracking Mapping Version: {}", version);
14221420

14231421
// Helper function to check if a line is valid (not empty and doesn't start with comment)
14241422
fn valid_line(line: &str, symbol: &str) -> bool {
@@ -1710,13 +1708,6 @@ fn convert_node_mappings_to_line_numbers(
17101708
build_python_kernel_to_lines_map(output_code_content, &kernel_names, version);
17111709
let cpp_code_to_lines = build_cpp_kernel_to_lines_map(aot_code_content, &kernel_names, version);
17121710

1713-
#[cfg(debug_assertions)]
1714-
println!("kernel_names: {:?}", kernel_names);
1715-
#[cfg(debug_assertions)]
1716-
println!("py_kernel_to_lines: {:?}", py_kernel_to_lines);
1717-
#[cfg(debug_assertions)]
1718-
println!("cpp_code_to_lines: {:?}", cpp_code_to_lines);
1719-
17201711
// Process all mappings using helper functions
17211712
let line_pre_to_post =
17221713
if let Some(pre_to_post) = node_mappings.get("preToPost").and_then(|v| v.as_object()) {

0 commit comments

Comments
 (0)