-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Reformat the critical chain output #1647
Conversation
@@ -89,7 +95,8 @@ | |||
<span class="cnc-node__tree-hostname">({{ this.hostname }})</span> | |||
{{/parseURL}} | |||
{{#unless hasChildren}} | |||
- <span class="cnc-node__chain-duration">{{chainDuration startTime this.node.request.endTime }}ms, {{formatTransferSize this.transferSize}}KB</span> | |||
- <span class="cnc-node__chain-duration">{{chainDuration startTime this.node.request.endTime }}ms</span>, | |||
<span class="cnc-node__chain-duration">{{formatTransferSize this.transferSize}}KB</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: not really chain-duration, why was it split into two spans? or maybe use a new chain-size
modified or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split into two so that the comma wasn't bolded. and yah im lazily not adjusting the classname. i could.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha, nah not a big deal
longestChainDuration = duration; | ||
if (duration > longest.duration) { | ||
longest.duration = duration; | ||
longest.transferSize = opts.chainTransferSize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was outstanding, but why does this chainTransferSize not include the size of the file that pushed the chain out farthest? the duration is pulled from the youtube base.js in the screenshot which is ~430kb and larger than the entire chain size of ~390kb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. mind if i break this into a separate issue?
` - Longest chain duration (shorter is better): ${longestDuration}ms\n` + | ||
` - Longest chain transfer size (smaller is better): ${longestTransferSize}KB\n` + | ||
const output = ` - Longest request chain: ${longestDuration}ms` + | ||
` over ${longestChain } requests, totalling ${longestTransferSize}KB\n` + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit extra spacing: ${longestChain}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -55,6 +55,12 @@ | |||
color: #999; | |||
} | |||
|
|||
.initial-nav { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need to add this to the .css file when #1652 lands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
7483d1a
to
3499f59
Compare
Some upgrades to this little guy to make it more concise.
details/summary
so its not too loud in the reportScreenshots: