-
Notifications
You must be signed in to change notification settings - Fork 36.9k
Adding performance marks for clipboard operations #282872
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
815c7c1
82e9208
46994dc
509bca8
e5b6914
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -178,8 +178,10 @@ export class CopyPasteController extends Disposable implements IEditorContributi | |
| const storedMetadata = metadata || InMemoryClipboardMetadataManager.INSTANCE.get(text); | ||
| id = storedMetadata?.id || null; | ||
| this._logService.trace('CopyPasteController#handleCopy for id : ', id, ' with text.length : ', text.length); | ||
| performance.mark('code/CopyPasteController/handleCopy', { detail: { id, length: text.length } }); | ||
| } else { | ||
| this._logService.trace('CopyPasteController#handleCopy'); | ||
| performance.mark('code/CopyPasteController/handleCopy'); | ||
|
Comment on lines
+181
to
+184
|
||
| } | ||
| if (!this._editor.hasTextFocus()) { | ||
| return; | ||
|
|
@@ -261,8 +263,10 @@ export class CopyPasteController extends Disposable implements IEditorContributi | |
| const [text, metadata] = ClipboardEventUtils.getTextData(e.clipboardData); | ||
| const metadataComputed = metadata || InMemoryClipboardMetadataManager.INSTANCE.get(text); | ||
| this._logService.trace('CopyPasteController#handlePaste for id : ', metadataComputed?.id); | ||
| performance.mark('code/CopyPasteController/handlePaste', { detail: { id: metadataComputed?.id } }); | ||
| } else { | ||
| this._logService.trace('CopyPasteController#handlePaste'); | ||
| performance.mark('code/CopyPasteController/handlePaste'); | ||
|
Comment on lines
+272
to
+275
|
||
| } | ||
| if (!e.clipboardData || !this._editor.hasTextFocus()) { | ||
| return; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.