mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 09:40:42 +00:00
update
Signed-off-by: zhangcui <zhangcui11@huawei.com>
This commit is contained in:
parent
ea249ea65e
commit
a0f9efaf5a
@ -64,7 +64,7 @@ int main()
|
||||
printf("demo start\n");
|
||||
HiperfClient::RecordOption opt;
|
||||
const int timeout = 30;
|
||||
opt.SetAppPackage("init");
|
||||
opt.SetAppPackage("com.ohos.launcher");
|
||||
opt.SetTimeStopSec(timeout);
|
||||
if (myHiperf.Start(opt)) {
|
||||
printf("demo start successfully\n");
|
||||
|
@ -339,7 +339,7 @@ HWTEST_F(HiperfClientTest, SetDataLimit, TestSize.Level1)
|
||||
HWTEST_F(HiperfClientTest, SetAppPackage, TestSize.Level1)
|
||||
{
|
||||
HiperfClient::RecordOption opt;
|
||||
opt.SetAppPackage("init");
|
||||
opt.SetAppPackage("com.ohos.launcher");
|
||||
|
||||
TestCaseOption(opt);
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ void SubCommandRecordTest::TestRecordCommand(const std::string &option, bool exp
|
||||
|
||||
std::string cmdString = "record ";
|
||||
if (fixPid) {
|
||||
cmdString += "--app init ";
|
||||
cmdString += "--app com.ohos.launcher ";
|
||||
}
|
||||
cmdString += " " + option;
|
||||
printf("command : %s\n", cmdString.c_str());
|
||||
@ -96,7 +96,7 @@ void SubCommandRecordTest::TestRecordCommand(const std::string &option, bool exp
|
||||
// app package name
|
||||
HWTEST_F(SubCommandRecordTest, PackageName, TestSize.Level1)
|
||||
{
|
||||
TestRecordCommand("-d 2 --app init ", true, false);
|
||||
TestRecordCommand("-d 2 --app com.ohos.launcher ", true, false);
|
||||
}
|
||||
|
||||
HWTEST_F(SubCommandRecordTest, PackageNameErr, TestSize.Level1)
|
||||
|
Loading…
Reference in New Issue
Block a user