Skip to content

add telemetry updates for openfile - #6257

Merged
Elaheh Rashedi (elahehrashedi) merged 17 commits into
masterfrom
elrashed/5759_2
Oct 17, 2020
Merged

Elaheh Rashedi (elahehrashedi) merged 17 commits into
masterfrom
elrashed/5759_2

Conversation

@elahehrashedi

@elahehrashedi Elaheh Rashedi (elahehrashedi) commented Oct 6, 2020 •

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) requested a review from a team October 6, 2020 03:13
Comment thread Extension/src/LanguageServer/clientCollection.ts Outdated
Comment thread Extension/src/LanguageServer/clientCollection.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/clientCollection.ts Outdated
Comment thread Extension/src/LanguageServer/extension.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/clientCollection.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/timeTelemetryCollector.ts Outdated
Comment thread Extension/src/LanguageServer/timeTelemetryCollector.ts Outdated
Comment thread Extension/src/LanguageServer/timeTelemetryCollector.ts Outdated
Comment thread Extension/src/LanguageServer/timeTelemetryCollector.ts
Comment thread Extension/src/LanguageServer/timeTelemetryCollector.ts
Comment thread Extension/src/LanguageServer/timeTelemetryCollector.ts Outdated
Comment thread Extension/src/LanguageServer/extension.ts Outdated
@bobbrow

Copy link
Copy Markdown
Contributor

I will clear my review since I'm about to leave for the day. If you fix the last issue about the "setupTime" property, I approve.

@bobbrow
Bob Brown (bobbrow) dismissed their stale review October 17, 2020 00:06

Approved with suggestion

@bobbrow

Copy link
Copy Markdown
Contributor

Elaheh Rashedi (@elahehrashedi) you didn't fix the last bug. I cleared my review so that you could check in after fixing that. Please fix the value of setup time for the warm start case.

@github-actions github-actions Bot locked and limited conversation to collaborators Dec 1, 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