diff --git a/ide/src/trace/component/SpRecordTrace.ts b/ide/src/trace/component/SpRecordTrace.ts index bc1e9cdfe6b9c8254833134a75ed0a8ef2cf477e..b98a010c288ca4c82d7a5af45569ac71bd0bdb16 100644 --- a/ide/src/trace/component/SpRecordTrace.ts +++ b/ide/src/trace/component/SpRecordTrace.ts @@ -1576,10 +1576,19 @@ export class SpRecordTrace extends BaseElement { recordArgs = recordArgs + '-f ' + perfConfig?.frequency; if (perfConfig?.process && !perfConfig?.process.includes('ALL') && perfConfig?.process.length > 0) { let process = perfConfig.process; - if (this.isNumber(process)) { - recordArgs = recordArgs + ' -p ' + perfConfig?.process; + if (process.indexOf(',') != -1) { + let processIdOrName = process.split(','); + if (this.isNumber(processIdOrName[0])) { + recordArgs = recordArgs + ' -p ' + perfConfig?.process; + } else { + recordArgs = recordArgs + ' --app ' + perfConfig?.process; + } } else { - recordArgs = recordArgs + ' --app ' + perfConfig?.process; + if (this.isNumber(process)) { + recordArgs = recordArgs + ' -p ' + perfConfig?.process; + } else { + recordArgs = recordArgs + ' --app ' + perfConfig?.process; + } } } else { recordArgs = recordArgs + ' -a '; diff --git a/trace_streamer/gn/toolchain/BUILD.gn b/trace_streamer/gn/toolchain/BUILD.gn index 3b31509464aa0660a9b73a9d08b4865bff5d292d..37f5bc3d01272d238493b786cb65d93443e36f10 100755 --- a/trace_streamer/gn/toolchain/BUILD.gn +++ b/trace_streamer/gn/toolchain/BUILD.gn @@ -14,12 +14,12 @@ import("//gn/wasm.gni") declare_args() { if (target_os == "linux" || target_os == "macx") { - cc = "/usr/bin/clang" - cxx = "/usr/bin/clang++" + cc = "clang" + cxx = "clang++" pic = "-fPIC" rebuild_string = "" extra_asmflags = "" - asm = "/usr/bin/clang" + asm = "clang" } else if (target_os == "windows") { cc = "gcc.exe" cxx = "g++.exe" diff --git a/trace_streamer/pare_third_party.sh b/trace_streamer/pare_third_party.sh index a3a54f63d1ba691f7ffb8c2a3db135c0cfa8760d..0639f4a53abc98f8bb6a03fa5c18bce838c59802 100755 --- a/trace_streamer/pare_third_party.sh +++ b/trace_streamer/pare_third_party.sh @@ -26,7 +26,7 @@ cd third_party if [ ! -f "sqlite/BUILD.gn" ];then rm -rf sqlite - git clone git@gitee.com:openharmony/third_party_sqlite.git + git clone https://gitee.com/openharmony/third_party_sqlite.git if [ -d "third_party_sqlite" ];then mv third_party_sqlite sqlite $cp ../prebuilts/patch_sqlite/sqlite3build.gn ../third_party/sqlite/BUILD.gn @@ -34,7 +34,7 @@ if [ ! -f "sqlite/BUILD.gn" ];then fi if [ ! -f "protobuf/BUILD.gn" ];then rm -rf protobuf - git clone git@gitee.com:openharmony/third_party_protobuf.git + git clone https://gitee.com/openharmony/third_party_protobuf.git if [ -d "third_party_protobuf" ];then mv third_party_protobuf protobuf $cp ../prebuilts/patch_protobuf/protobufbuild.gn ../third_party/protobuf/BUILD.gn @@ -43,7 +43,7 @@ fi if [ ! -f "googletest/BUILD.gn" ];then rm -rf googletest - git clone git@gitee.com:openharmony/third_party_googletest.git + git clone https://gitee.com/openharmony/third_party_googletest.git if [ -d "third_party_googletest" ];then mv third_party_googletest googletest $cp ../prebuilts/patch_googletest/googletestbuild.gn ../third_party/googletest/BUILD.gn @@ -56,7 +56,7 @@ fi if [ ! -f "json-master/BUILD.gn" ];then rm -rf json-master - git clone git@gitee.com:openharmony/third_party_json.git + git clone https://gitee.com/openharmony/third_party_json.git if [ -d "third_party_json" ];then mv third_party_json json-master fi @@ -64,7 +64,7 @@ fi if [ ! -f "libunwind/BUILD.gn" ];then rm -rf libunwind - git clone git@gitee.com:openharmony/third_party_libunwind.git + git clone https://gitee.com/openharmony/third_party_libunwind.git if [ -d "third_party_libunwind" ];then mv third_party_libunwind libunwind $cp ../prebuilts/patch_libunwind/libunwindbuild.gn libunwind/BUILD.gn @@ -88,7 +88,7 @@ fi if [ ! -f "hiperf/BUILD.gn" ];then rm -rf hiperf developtools_hiperf - git clone -b OpenHarmony-3.2-Release --depth=1 git@gitee.com:openharmony/developtools_hiperf.git + git clone -b OpenHarmony-3.2-Release --depth=1 https://gitee.com/openharmony/developtools_hiperf.git if [ -d "developtools_hiperf" ];then mv developtools_hiperf hiperf $cp ../prebuilts/patch_hiperf/BUILD.gn ../third_party/hiperf/BUILD.gn