Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f6821f30
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f6821f30
编写于
1月 05, 2023
作者:
O
openharmony_ci
提交者:
Gitee
1月 05, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7121 faultlogger测试用例内存泄漏问题修复
Merge pull request !7121 from chenxuihui/master
上级
78cc8f34
55834527
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
22 deletion
+3
-22
hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js
hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js
+0
-12
hiviewdfx/hitracemetertest/src/main/js/test/hitracemeter_test.js
...fx/hitracemetertest/src/main/js/test/hitracemeter_test.js
+0
-9
hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/test/faultlogger.test.js
...logger/faultloggerjs/src/main/js/test/faultlogger.test.js
+3
-1
未找到文件。
hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js
浏览文件 @
f6821f30
...
...
@@ -17,24 +17,13 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
export
default
function
BytraceTest
()
{
describe
(
"
BytraceTest
"
,
function
()
{
async
function
msleep
(
time
)
{
var
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
);
});
var
result
=
await
promise
;
}
it
(
"
DFX_DFR_Bytrace_0100
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
-------DFX_DFR_Bytrace_0100 start--------
"
);
await
msleep
(
3000
);
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_Bytrace_0100 i =
"
+
i
)
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
startTrace start
"
);
bytrace
.
startTrace
(
"
test-
"
+
i
.
toString
(),
111
+
i
,
5000
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
startTrace end
"
);
// await msleep(3000);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
finishTrace start
"
);
bytrace
.
finishTrace
(
"
test-
"
+
i
.
toString
(),
111
+
i
);
console
.
info
(
"
DFX_DFR_Bytrace_0100
"
+
i
.
toString
()
+
"
finishTrace end
"
);
...
...
@@ -155,7 +144,6 @@ describe("BytraceTest", function () {
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_Bytrace_0400 :
"
+
i
);
bytrace
.
traceByValue
(
"
test4-
"
+
i
.
toString
(),
3
+
i
);
await
msleep
(
1000
);
}
console
.
info
(
"
DFX_DFR_Bytrace_0400 end
"
);
done
();
...
...
hiviewdfx/hitracemetertest/src/main/js/test/hitracemeter_test.js
浏览文件 @
f6821f30
...
...
@@ -17,16 +17,8 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
export
default
function
HitraceMeterTest
()
{
describe
(
"
HitraceMeterTest
"
,
function
()
{
async
function
msleep
(
time
)
{
var
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
);
});
var
result
=
await
promise
;
}
it
(
"
DFX_DFR_HitraceMeter_0100
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
-------DFX_DFR_HitraceMeter_0100 start--------
"
);
await
msleep
(
3000
);
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_HitraceMeter_0100 i =
"
+
i
)
console
.
info
(
"
DFX_DFR_HitraceMeter_0100
"
+
i
.
toString
()
+
"
startTrace start
"
);
...
...
@@ -152,7 +144,6 @@ describe("HitraceMeterTest", function () {
for
(
var
i
=
0
;
i
<
3
;
i
++
)
{
console
.
info
(
"
DFX_DFR_HitraceMeter_0400 :
"
+
i
);
hiTraceMeter
.
traceByValue
(
"
test4-
"
+
i
.
toString
(),
3
+
i
);
await
msleep
(
1000
);
}
console
.
info
(
"
DFX_DFR_HitraceMeter_0400 end
"
);
done
();
...
...
hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/js/test/faultlogger.test.js
浏览文件 @
f6821f30
...
...
@@ -35,10 +35,12 @@ describe("FaultlogJsTest", function () {
})
async
function
msleep
(
time
)
{
let
timeoutID
=
null
;
let
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
)
timeoutID
=
setTimeout
(()
=>
resolve
(
"
done!
"
),
time
)
});
let
result
=
await
promise
;
clearTimeout
(
timeoutID
);
}
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录