Skip to content

[WIP] Everybody gets a tracer #15665

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

Merged
merged 11 commits into from
Sep 5, 2018

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Apr 1, 2018

This PR has been dragging on for .. a while .. but I think it's probably worth merging now. The punchline is that every request (in the request-evaluator sense) now gets traced/profiled automatically, and a fair quantity of their arguments do too. I also sprinkled a few others around places I thought might be interesting, expanded the entity vocabulary, and improved the formatting of entity names where possible. The trace logs and profiles are roughly readable/informative now.

(I tried to do quite a lot of template-metaprogram tricks to cut down on the number of explicit overloads and specializations relative to the vocabulary here, all of them either failed in some resolution-ordering corner case I couldn't figure out, or else broke the layering-violation-avoidance tricks, so wouldn't link. I'm happy enough with this state.)

@graydon graydon force-pushed the everybody-gets-a-tracer branch 2 times, most recently from 6c011ad to d24402d Compare May 29, 2018 07:53
@graydon graydon force-pushed the everybody-gets-a-tracer branch from d24402d to 365effe Compare August 20, 2018 23:17
@graydon
Copy link
Contributor Author

graydon commented Sep 1, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Sep 1, 2018

Build failed
Swift Test Linux Platform
Git Sha - 9896b1b4526a510ffe9ea85584a5f1e8ebdecd24

@swift-ci
Copy link
Contributor

swift-ci commented Sep 1, 2018

Build failed
Swift Test OS X Platform
Git Sha - 9896b1b4526a510ffe9ea85584a5f1e8ebdecd24

@graydon graydon force-pushed the everybody-gets-a-tracer branch from 9896b1b to d4022e3 Compare September 1, 2018 23:08
@graydon graydon force-pushed the everybody-gets-a-tracer branch from d4022e3 to 388e357 Compare September 2, 2018 09:00
@graydon
Copy link
Contributor Author

graydon commented Sep 2, 2018

@swift-ci please test

1 similar comment
@graydon
Copy link
Contributor Author

graydon commented Sep 2, 2018

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Sep 2, 2018

Build failed
Swift Test Linux Platform
Git Sha - 9896b1b4526a510ffe9ea85584a5f1e8ebdecd24

@swift-ci
Copy link
Contributor

swift-ci commented Sep 2, 2018

Build failed
Swift Test OS X Platform
Git Sha - 9896b1b4526a510ffe9ea85584a5f1e8ebdecd24

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This looks fantastic! The only comment I have is to please update docs/RequestEvaluator.md to remove the entry that asks someone to implement this.

@graydon
Copy link
Contributor Author

graydon commented Sep 4, 2018

@swift-ci please test and merge

1 similar comment
@graydon
Copy link
Contributor Author

graydon commented Sep 5, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit 6f3b618 into swiftlang:master Sep 5, 2018
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