提交 d7f82c11 编写于 作者: J Johannes Rieken

log telemetry event when we report unresponsiveness and crash, aftermath for #62970 and #62829

上级 66461d30
......@@ -39,9 +39,9 @@ import { getComparisonKey, isEqual, normalizePath } from 'vs/base/common/resourc
import { endsWith } from 'vs/base/common/strings';
import { getRemoteAuthority } from 'vs/platform/remote/common/remoteHosts';
enum WindowError {
UNRESPONSIVE,
CRASHED
const enum WindowError {
UNRESPONSIVE = 1,
CRASHED = 2
}
interface INewWindowState extends ISingleWindowState {
......@@ -162,7 +162,7 @@ export class WindowsManager implements IWindowsMainService {
@IEnvironmentService private environmentService: IEnvironmentService,
@ILifecycleService private lifecycleService: ILifecycleService,
@IBackupMainService private backupMainService: IBackupMainService,
@ITelemetryService telemetryService: ITelemetryService,
@ITelemetryService private telemetryService: ITelemetryService,
@IConfigurationService private configurationService: IConfigurationService,
@IHistoryMainService private historyMainService: IHistoryMainService,
@IWorkspacesMainService private workspacesMainService: IWorkspacesMainService,
......@@ -1641,6 +1641,13 @@ export class WindowsManager implements IWindowsMainService {
private onWindowError(window: ICodeWindow, error: WindowError): void {
this.logService.error(error === WindowError.CRASHED ? '[VS Code]: render process crashed!' : '[VS Code]: detected unresponsive');
/* __GDPR__
"windowerror" : {
"type" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
}
*/
this.telemetryService.publicLog('windowerror', { type: error });
// Unresponsive
if (error === WindowError.UNRESPONSIVE) {
this.dialogs.showMessageBox({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册