Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1240843e
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看板
提交
1240843e
编写于
5月 28, 2022
作者:
U
uoengopen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
guofeng43@huawei.com
Signed-off-by:
N
uoengopen
<
guofeng43@huawei.com
>
上级
c69434c3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
21 deletion
+7
-21
hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/default/test/Hidebug.test.js
...idebugtestjstest/src/main/js/default/test/Hidebug.test.js
+7
-21
未找到文件。
hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/default/test/Hidebug.test.js
浏览文件 @
1240843e
...
...
@@ -123,7 +123,6 @@ describe('HidebugJsTest', function () {
hidebug
.
startProfiling
(
filename
);
let
temp
=
100
;
hidebug
.
stopProfiling
();
fileio
.
accessSync
(
path
,
0
);
console
.
info
(
'
file is exists:
'
,
path
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
...
...
@@ -150,18 +149,10 @@ describe('HidebugJsTest', function () {
let
temp
=
100
;
hidebug
.
stopProfiling
();
hidebug
.
stopProfiling
();
fileio
.
accessSync
(
path1
,
0
);
fileio
.
accessSync
(
path2
,
0
);
fileio
.
accessSync
(
path3
,
0
);
let
res
=
fileio
.
readTextSync
(
path1
);
let
tmp
=
JSON
.
stringify
(
res
);
expect
(
tmp
.
length
).
assertLarger
(
2
);
res
=
fileio
.
readTextSync
(
path2
);
tmp
=
JSON
.
stringify
(
res
);
expect
(
tmp
.
length
).
assertEqual
(
2
);
res
=
fileio
.
readTextSync
(
path3
);
tmp
=
JSON
.
stringify
(
res
);
expect
(
tmp
.
length
).
assertEqual
(
2
);
console
.
info
(
'
file is exists:
'
,
path1
);
console
.
info
(
'
file is exists:
'
,
path2
);
console
.
info
(
'
file is exists:
'
,
path3
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
expect
().
assertFail
();
}
...
...
@@ -188,7 +179,6 @@ describe('HidebugJsTest', function () {
hidebug
.
startProfiling
(
''
);
let
temp
=
100
;
hidebug
.
stopProfiling
();
fileio
.
accessSync
(
path
,
0
);
console
.
info
(
'
file is exists:
'
,
path
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
...
...
@@ -221,7 +211,6 @@ describe('HidebugJsTest', function () {
hidebug
.
startProfiling
(
str
);
let
temp
=
100
;
hidebug
.
stopProfiling
();
fileio
.
accessSync
(
path
,
0
);
console
.
info
(
'
file is exists:
'
,
path
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
...
...
@@ -244,7 +233,6 @@ describe('HidebugJsTest', function () {
console
.
info
(
filename
);
let
path
=
'
/data/app/el2/100/base/com.hidebug.test/files/
'
+
filename
+
'
.heapsnapshot
'
hidebug
.
dumpHeapData
(
filename
);
fileio
.
accessSync
(
path
,
0
);
console
.
info
(
'
file is exists:
'
,
path
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
...
...
@@ -271,7 +259,6 @@ describe('HidebugJsTest', function () {
}
try
{
hidebug
.
dumpHeapData
(
''
);
fileio
.
accessSync
(
path
,
0
);
console
.
info
(
'
file is exists:
'
,
path
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
...
...
@@ -302,7 +289,6 @@ describe('HidebugJsTest', function () {
}
try
{
hidebug
.
dumpHeapData
(
str
);
fileio
.
accessSync
(
path
,
0
);
console
.
info
(
'
file is exists:
'
,
path
);
expect
(
true
).
assertTrue
();
}
catch
(
error
)
{
...
...
@@ -337,9 +323,9 @@ describe('HidebugJsTest', function () {
console
.
log
(
'
************* DFX_DFR_Hiprofiler_Interface_0014 Test start*************
'
);
try
{
let
temp
=
-
1
;
for
(
let
i
=
0
;
i
<
10
00
1
;
i
++
){
for
(
let
j
=
0
;
j
<
10
00
1
;
j
++
){
if
(
i
+
j
==
20
00
2
){
for
(
let
i
=
0
;
i
<
101
;
i
++
){
for
(
let
j
=
0
;
j
<
101
;
j
++
){
if
(
i
+
j
==
202
){
temp
=
hidebug
.
getCpuUsage
();
console
.
info
(
"
CpuUsage is
"
+
temp
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录