Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Profiler] Sort columns in table and csv output #9300

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

tkonolige
Copy link
Contributor

This should fix some problems around flakey profiler tests based on order of columns. See #9275

@Lunderberg

This should fix some problems around flakey profiler tests based on
order of columns.
for (auto header : unique_headers) {
if (header != "Name" && header != "Duration (us)" && header != "Percent") {
if (std::find(headers.begin(), headers.end(), header) == headers.end()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we worried about this being quadratic in the number of unique headers, or will there always be a small number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would assume the number of headers is going to be small.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I just wasn't sure if there were other edge cases. In that case, looks good to me.

@masahi masahi merged commit 39d32c3 into apache:main Oct 16, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
This should fix some problems around flakey profiler tests based on
order of columns.
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
This should fix some problems around flakey profiler tests based on
order of columns.
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.

3 participants