Skip to content

setup time (one line change) - #6351

Merged
Elaheh Rashedi (elahehrashedi) merged 1 commit into
masterfrom
elrashed/5759_4
Oct 19, 2020
Merged

Elaheh Rashedi (elahehrashedi) merged 1 commit into
masterfrom
elrashed/5759_4

Conversation

@elahehrashedi

Copy link
Copy Markdown
Contributor

telemetry request: #5759

These are the timestamps:

firstFile: when the extension is activated by realActivation and the active text editor is a c/cpp file. Defined only for "cold" start cases.
didOpen: when the file appears in the editor (all files including the first file). Defined for "warm" start cases.
setup: when the Intellisense_client constructor is completed and we give the control back to the user at the end of textDocument_didOpen in language server side
updateRange: when publishDiagnostics is completed
We defined an extra startTime timestamp: when the extension activates, if the active text document is a c/cpp file, the startTime for this file is set to firstFile timestamp, otherwise it is set to didOpen timestamp.

These are the durations that are being calculated based on timestamps and logged:

activationTime = firstFile - didOpen logged only for the first file (cold start)
setupTime = setup - didOpen
updateRangeTime = updateRange - setup
totalTime = updateRange - startTime
there is a related pull request on the native side.

@elahehrashedi
Elaheh Rashedi (elahehrashedi) deleted the elrashed/5759_4 branch October 22, 2020 21:39
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants