Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c219c3f7
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c219c3f7
编写于
12月 13, 2017
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - remove appReady from timerService, use perf-marks
上级
09f3da07
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
2 addition
and
11 deletion
+2
-11
src/main.js
src/main.js
+0
-1
src/vs/code/electron-main/window.ts
src/vs/code/electron-main/window.ts
+0
-1
src/vs/workbench/electron-browser/bootstrap/index.js
src/vs/workbench/electron-browser/bootstrap/index.js
+0
-1
src/vs/workbench/services/timer/common/timerService.ts
src/vs/workbench/services/timer/common/timerService.ts
+0
-4
src/vs/workbench/services/timer/node/timerService.ts
src/vs/workbench/services/timer/node/timerService.ts
+2
-4
未找到文件。
src/main.js
浏览文件 @
c219c3f7
...
...
@@ -219,7 +219,6 @@ var nodeCachedDataDir = getNodeCachedDataDir().then(function (value) {
// Load our code once ready
app
.
once
(
'
ready
'
,
function
()
{
perf
.
mark
(
'
main:appReady
'
);
global
.
perfAppReady
=
Date
.
now
();
var
nlsConfig
=
getNLSConfiguration
();
process
.
env
[
'
VSCODE_NLS_CONFIG
'
]
=
JSON
.
stringify
(
nlsConfig
);
...
...
src/vs/code/electron-main/window.ts
浏览文件 @
c219c3f7
...
...
@@ -587,7 +587,6 @@ export class CodeWindow implements ICodeWindow {
// Perf Counters
windowConfiguration
.
perfEntries
=
exportEntries
();
windowConfiguration
.
perfStartTime
=
global
.
perfStartTime
;
windowConfiguration
.
perfAppReady
=
global
.
perfAppReady
;
windowConfiguration
.
perfWindowLoadTime
=
Date
.
now
();
// Config (combination of process.argv and window configuration)
...
...
src/vs/workbench/electron-browser/bootstrap/index.js
浏览文件 @
c219c3f7
...
...
@@ -175,7 +175,6 @@ function main() {
isInitialStartup
:
!!
configuration
.
isInitialStartup
,
hasAccessibilitySupport
:
!!
configuration
.
accessibilitySupport
,
start
:
configuration
.
perfStartTime
,
appReady
:
configuration
.
perfAppReady
,
windowLoad
:
configuration
.
perfWindowLoadTime
};
...
...
src/vs/workbench/services/timer/common/timerService.ts
浏览文件 @
c219c3f7
...
...
@@ -83,11 +83,7 @@ export interface IStartupMetrics {
export
interface
IInitData
{
start
:
number
;
appReady
:
number
;
windowLoad
:
number
;
isInitialStartup
:
boolean
;
hasAccessibilitySupport
:
boolean
;
}
...
...
src/vs/workbench/services/timer/node/timerService.ts
浏览文件 @
c219c3f7
...
...
@@ -14,7 +14,6 @@ export class TimerService implements ITimerService {
public
_serviceBrand
:
any
;
public
readonly
start
:
number
;
public
readonly
appReady
:
number
;
public
readonly
windowLoad
:
number
;
public
readonly
isInitialStartup
:
boolean
;
...
...
@@ -24,7 +23,6 @@ export class TimerService implements ITimerService {
constructor
(
initData
:
IInitData
,
private
isEmptyWorkbench
:
boolean
)
{
this
.
start
=
initData
.
start
;
this
.
appReady
=
initData
.
appReady
;
this
.
windowLoad
=
initData
.
windowLoad
;
this
.
isInitialStartup
=
initData
.
isInitialStartup
;
...
...
@@ -100,8 +98,8 @@ export class TimerService implements ITimerService {
};
if
(
initialStartup
)
{
this
.
_startupMetrics
.
timers
.
ellapsedAppReady
=
this
.
appReady
-
this
.
start
;
this
.
_startupMetrics
.
timers
.
ellapsedWindowLoad
=
this
.
windowLoad
-
this
.
appReady
;
this
.
_startupMetrics
.
timers
.
ellapsedAppReady
=
perf
.
getDuration
(
'
main:started
'
,
'
main:appReady
'
)
;
this
.
_startupMetrics
.
timers
.
ellapsedWindowLoad
=
this
.
windowLoad
-
perf
.
getEntry
(
'
mark
'
,
'
main:appReady
'
).
startTime
;
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录