Skip to content

Move "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents"#1054

Closed
jj10306 wants to merge 1 commit intopytorch:mainfrom
jj10306:export-D70404528
Closed

Move "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents"#1054
jj10306 wants to merge 1 commit intopytorch:mainfrom
jj10306:export-D70404528

Conversation

@jj10306
Copy link
Contributor

@jj10306 jj10306 commented Mar 3, 2025

Summary: baseTimeNanoseconds is currently put at the end of the trace after traceEvents which makes efficiently parsing this trace metadata with ijson difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave traceName at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Differential Revision: D70404528

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

@jj10306 jj10306 force-pushed the export-D70404528 branch 2 times, most recently from e6e2bc6 to c7f81d1 Compare March 4, 2025 15:42
jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 4, 2025
…pytorch#1054)

Summary:

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Reviewed By: sraikund16

Differential Revision: D70404528
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 4, 2025
…pytorch#1054)

Summary:
Pull Request resolved: pytorch#1054

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Reviewed By: sraikund16

Differential Revision: D70404528
@jj10306 jj10306 force-pushed the export-D70404528 branch 2 times, most recently from 414b586 to 6ddda35 Compare March 4, 2025 16:27
jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 4, 2025
…pytorch#1054)

Summary:

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Reviewed By: sraikund16

Differential Revision: D70404528
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 4, 2025
…pytorch#1054)

Summary:

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Reviewed By: sraikund16

Differential Revision: D70404528
@jj10306 jj10306 force-pushed the export-D70404528 branch from 6ddda35 to 6298541 Compare March 4, 2025 20:33
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

@jj10306 jj10306 force-pushed the export-D70404528 branch from 6298541 to 12c7ef5 Compare March 4, 2025 20:36
jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 4, 2025
…pytorch#1054)

Summary:
Pull Request resolved: pytorch#1054

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Reviewed By: sraikund16

Differential Revision: D70404528
@jj10306 jj10306 force-pushed the export-D70404528 branch from 12c7ef5 to 6dfe9d8 Compare March 6, 2025 16:28
jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 6, 2025
…pytorch#1054)

Summary:

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Differential Revision: D70404528
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

@jj10306 jj10306 force-pushed the export-D70404528 branch from 6dfe9d8 to d5a63c9 Compare March 6, 2025 16:31
jj10306 added a commit to jj10306/kineto that referenced this pull request Mar 6, 2025
…pytorch#1054)

Summary:
Pull Request resolved: pytorch#1054

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Differential Revision: D70404528
…pytorch#1054)

Summary:

`baseTimeNanoseconds` is currently put at the end of the trace after `traceEvents` which makes efficiently parsing this trace metadata with `ijson` difficult. This diff moves "baseTimeNanoseconds" and "displayTimeUnit" before "traceEvents" - we intentionally leave `traceName` at the end of the trace for the time being to avoid having to make a more sprawling change to correctly handle trailing commas.

Reviewed By: aaronenyeshi

Differential Revision: D70404528
@jj10306 jj10306 force-pushed the export-D70404528 branch from d5a63c9 to cab63f7 Compare March 6, 2025 16:52
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70404528

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 08fcb94.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants