/arkcompiler/runtime_core/compiler/tests/ |
H A D | pass_manager_test.cpp | 163 std::vector<std::string> lines; in HWTEST_F() 165 lines.emplace_back(line); in HWTEST_F() 168 EXPECT_EQ(lines[0], " ID Pass Name : IR mem Local mem Time,us"); in HWTEST_F() 169 EXPECT_EQ(lines[1], "-----------------------------------------------------------------------------"); in HWTEST_F() 170 EXPECT_EQ(lines[2].substr(0, ID_PASSNAME_COLUMN_WIDTH), " 0 IrBuilder :"); in HWTEST_F() 171 EXPECT_EQ(lines[3].substr(0, ID_PASSNAME_COLUMN_WIDTH), " 1 RPO :"); in HWTEST_F() 172 EXPECT_EQ(lines[4].substr(0, ID_PASSNAME_COLUMN_WIDTH), " 2 DominatorTree :"); in HWTEST_F() 173 EXPECT_EQ(lines[5].substr(0, ID_PASSNAME_COLUMN_WIDTH), " 3 LoopAnalysis :"); in HWTEST_F() 174 EXPECT_EQ(lines[6].substr(0, ID_PASSNAME_COLUMN_WIDTH), " 4 LoopAnalysis :"); in HWTEST_F() 175 EXPECT_EQ(lines[ in HWTEST_F() [all...] |
/arkcompiler/ets_runtime/ecmascript/ohos/ |
H A D | aot_runtime_info.h | 84 static char lines[MAX_LENGTH][BUFFER_SIZE]; in BuildCompileRuntimeInfo() local 86 memset_s(lines[i], BUFFER_SIZE, '\0', BUFFER_SIZE); in BuildCompileRuntimeInfo() 88 GetRuntimeInfoByPath(lines, realOutPath.c_str(), soBuildId); in BuildCompileRuntimeInfo() 94 int lineCount = getLength(lines, MAX_LENGTH); in BuildCompileRuntimeInfo() 96 if (!BuildRuntimeInfoPart(lines[lineCount], soBuildId, timestamp, type)) { in BuildCompileRuntimeInfo() 100 SetRuntimeInfo(realOutPath.c_str(), lines, MAX_LENGTH); in BuildCompileRuntimeInfo() 110 static char lines[MAX_LENGTH][BUFFER_SIZE]; in BuildCrashRuntimeInfo() local 112 memset_s(lines[i], BUFFER_SIZE, '\0', BUFFER_SIZE); in BuildCrashRuntimeInfo() 114 GetCrashRuntimeInfoList(lines); in BuildCrashRuntimeInfo() 119 int lineCount = getLength(lines, MAX_LENGT in BuildCrashRuntimeInfo() 146 char lines[MAX_LENGTH][BUFFER_SIZE]; CollectCrashSum() local 301 getLength(char lines[][BUFFER_SIZE], int maxInput) const getLength() argument 332 GetRealPathRuntimeInfoList(char lines[][BUFFER_SIZE], const std::string &pgoRealPath) const GetRealPathRuntimeInfoList() argument 351 SetRuntimeInfo(const char *realOutPath, char lines[][BUFFER_SIZE], int length) const SetRuntimeInfo() argument 366 GetRuntimeInfoByPath(char lines[][BUFFER_SIZE], const char *realOutPath, const char *soBuildId) const GetRuntimeInfoByPath() argument [all...] |
/arkcompiler/ets_runtime/test/fuzztest/setruntimeinfo_fuzzer/ |
H A D | setruntimeinfo_fuzzer.cpp | 26 void TestSetRuntimeInfo(const char *realOutPath, char lines[][BUFFER_SIZE], int length) const in TestSetRuntimeInfo() argument 28 SetRuntimeInfo(realOutPath, lines, length); in TestSetRuntimeInfo() 31 void TestGetRuntimeInfoByPath(char lines[][BUFFER_SIZE], const char *realOutPath, const char *soBuildId) const in TestGetRuntimeInfoByPath() argument 33 GetRuntimeInfoByPath(lines, realOutPath, soBuildId); in TestGetRuntimeInfoByPath() 49 // Generate random lines content in SetRuntimeInfoFuzzTest() 52 char lines[maxLength][bufferSize] = {}; in SetRuntimeInfoFuzzTest() local 60 runtimeInfoTest.TestSetRuntimeInfo(realOutPath.c_str(), lines, maxLength); in SetRuntimeInfoFuzzTest() 76 // prepare lines in GetRuntimeInfoByPathFuzzTest() 77 char lines[AotRuntimeInfo::MAX_LENGTH][AotRuntimeInfo::BUFFER_SIZE] = {{0}}; in GetRuntimeInfoByPathFuzzTest() local 80 runtimeInfoTest.TestGetRuntimeInfoByPath(lines, realOutPat in GetRuntimeInfoByPathFuzzTest() [all...] |
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
H A D | test_result.py | 262 lines = [] 267 lines = [line.strip() for line in 270 in lines) 273 'RSS(GM): 89336.0' in lines) 283 lines = [line.strip() for line in 287 in lines) 314 lines = [] 320 lines = [line.strip() for line in 323 in lines)
|
/arkcompiler/ets_runtime/ecmascript/ohos/tests/mock/ |
H A D | mock_aot_runtime_info.cpp | 61 void MockAotRuntimeInfo::SetRuntimeInfo(const char *realOutPath, char lines[][BUFFER_SIZE], int length) const in SetRuntimeInfo() argument 67 for (int i = 0; i < length && lines[i] != NULL; i++) { in SetRuntimeInfo() 68 if (lines[i][0] != '\0') { in SetRuntimeInfo() 69 write(fd, lines[i], strlen(lines[i])); in SetRuntimeInfo()
|
H A D | mock_aot_runtime_info.h | 36 void SetRuntimeInfo(const char *realOutPath, char lines[][BUFFER_SIZE], int length) const override;
|
/arkcompiler/runtime_core/static_core/tests/checked/ |
H A D | checker.rb | 90 # Provides methods to search lines in a given array 93 attr_reader :lines 95 def initialize(lines, name) 96 @lines = lines 102 @lines = @lines.drop(@current_index) 105 @lines = @lines.drop(@current_index - 1) 108 @lines [all...] |
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
H A D | doxygen_style_check.py | 59 lines = ["\nPlease, for single-line doxygen comments use the following formats:",\ 64 for line in lines: 115 lines = text.splitlines() 125 pattern_to_check = re.search(r' */// [^ ]+?[^\n]*', lines[line_num - 1]) 126 if not pattern_to_check or pattern_to_check.group(0) != lines[line_num - 1]: 141 lines[fine_comments_lines[i] - 1], 142 lines[fine_comments_lines[i + 1] - 1])) 154 lines = text.splitlines() 159 pattern_to_check = re.search(r' *[^ \n]+[^\n]* +///< [^\n]+', lines[line_num - 1]) 160 if not pattern_to_check or pattern_to_check.group(0) != lines[line_nu [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core.cpp | 45 std::vector<std::string> lines; in StdCoreStackTraceLines() local 58 lines.push_back(ss.str()); in StdCoreStackTraceLines() 63 auto *arr = ark::coretypes::Array::Create(klass, lines.size()); in StdCoreStackTraceLines() 67 for (ark::ArraySizeT i = 0; i < (ark::ArraySizeT)lines.size(); i++) { in StdCoreStackTraceLines() 68 auto *str = coretypes::String::CreateFromMUtf8(utf::CStringAsMutf8(lines[i].data()), lines[i].length(), ctx, in StdCoreStackTraceLines()
|
/arkcompiler/runtime_core/tests/checked/ |
H A D | checker.rb | 76 # Provides methods to search lines in a given array 79 attr_reader :lines 81 def initialize(lines, name) 82 @lines = lines 94 @current_index = @lines.index { |line| contains?(line, match) } 102 index = @lines.drop(@current_index).index { |line| contains?(line, match) } 110 @lines.each do |line| 118 @lines.drop(@current_index).each do |line| 124 "Scope '#{@name}', current=#{@current_index}\n#{@lines [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
H A D | test_predefined_types.py | 43 lines = [] 50 lines.append(f" let {var_name}: {source_type} = {source_value}") 51 lines.append(f" let {type_name}: Type = Type.of({var_name})") 62 gen_code = "\n".join(lines)
|
/arkcompiler/toolchain/build/config/mac/ |
H A D | sdk_info.py | 51 lines = subprocess.check_output(['xcodebuild', '-version']).splitlines() 52 settings_xcode['xcode_version'] = format_version(lines[0].split()[-1]) 54 settings_xcode['xcode_build'] = lines[-1].split()[-1]
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/ |
H A D | spec_report.py | 134 lines: List[str] = [] 135 self.__report_nodes(self.spec.children, lines) 136 lines.append(self.__report_node(self.spec)) # root node - summary line at the bottom 137 result = "\n".join(lines) 220 def __report_nodes(self, nodes: List[SpecNode], lines: List[str]) -> None: 222 lines.append(self.__report_node(node)) 223 self.__report_nodes(node.children, lines)
|
H A D | detailed_report.py | 84 lines: List[str] = [] 86 lines.append(self.__report_one_line(partial_path)) 87 result = "\n".join(sorted(lines))
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/internal_tests/ |
H A D | test_arkts_str.py | 87 lines: List[str] = [] 97 lines += [ 105 gen_code = "\n ".join(lines)
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | doclet.py | 37 def __init__(self, lines, pos, lang): 38 self.lines = lines 44 if 0 <= self.pos < len(self.lines): 45 return self.lines[self.pos] 53 if self.pos + 1 > len(self.lines): 54 raise IndexError('No lines left') 113 def __init__(self, lines, pos, lang) -> None: 114 super().__init__(lines, pos, lang)
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | source_meta.py | 61 lines: List[str] = source if not isinstance(source, str) else source.splitlines() 63 for line_number, line in enumerate(lines):
|
/arkcompiler/ets_frontend/test/scripts/utils/commit_message/ |
H A D | result.py | 139 lines = file.readlines() 142 for line in lines:
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
H A D | IrToPicture.js | 134 let lines = []; 136 this.generateLine(nodes, lines, lid); 141 lines: lines, 144 static generateLine(nodes, lines, lid) { 167 lines.push(line);
|
H A D | IrViewer.js | 141 let lines = this.visable_.lines; 143 for (let l of lines) { 235 let lines = this.visable_.lines; 342 let lines = this.visable_.lines; 373 let mmx1 = this.drawLines(this.offx_, this.offy_, nodes, lines, levely, [minx - 20, maxx + 20], false); //未选中的线 417 this.drawLines(this.offx_, this.offy_, nodes, lines, levely, [minx - 20, maxx + 20], true); //选中的线 544 drawLines(offx, offy, nodes, lines, level [all...] |
/arkcompiler/runtime_core/static_core/scripts/intrusive-testing/ |
H A D | intrusive_instrumentator.py | 153 lines = fd.readlines() 154 return lines 158 def write_lines_to_file(file_path, lines): 162 fo.writelines(lines) 439 lines = Util.read_file_lines(file.path) 453 self.__add_changes_to_files(header_file_set, sync_point_list, lines) 459 lines.insert(0, ''.join(incl_text_list)) 460 Util.write_lines_to_file(file.path, lines) 462 def __add_changes_to_files(self, header_file_set, sync_point_list, lines): 474 # file lines [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/ |
H A D | type_cache.py | 111 lines = [f"'{name}': {stat}" for name, stat in _CACHE_WRAPPERS.stats() if stat.hits] 112 LOG.info("Cache statisticts:\n%s", "\n".join(lines))
|
/arkcompiler/runtime_core/static_core/scripts/cmake-checker/ |
H A D | cmake_checker.py | 80 lines = f.readlines() 82 for line in lines:
|
/arkcompiler/runtime_core/static_core/tests/cts-generator/runner/reporters/ |
H A D | jtr_reporter.rb | 62 lines = @output.split("\n").map(&:strip).reject { |l| l.match(/^$/) } 63 @output = lines.join("\n") 64 @logger.log 1, "----------messages:(#{lines.length}/#{@output.length + 1})----------"
|
/arkcompiler/runtime_core/tests/cts-generator/runner/reporters/ |
H A D | jtr_reporter.rb | 62 lines = @output.split("\n").map(&:strip).reject { |l| l.match(/^$/) } 63 @output = lines.join("\n") 64 @logger.log 1, "----------messages:(#{lines.length}/#{@output.length + 1})----------"
|