Home
last modified time | relevance | path

Searched refs:oss (Results 1 – 22 of 22) sorted by relevance

/art/runtime/
Dreference_table_test.cc39 std::ostringstream oss; in TEST_F() local
40 rt.Dump(oss); in TEST_F()
41 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F()
57 std::ostringstream oss; in TEST_F() local
58 rt.Dump(oss); in TEST_F()
59 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
60 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
68 std::ostringstream oss; in TEST_F() local
69 rt.Dump(oss); in TEST_F()
70 EXPECT_NE(oss.str().find(StringPrintf("Last %zd entries (of %zd):", in TEST_F()
[all …]
Dgc_root-inl.h39 std::ostringstream oss; in ToString() local
40 Describe(oss); in ToString()
41 return oss.str(); in ToString()
Dindirect_reference_table_test.cc30 std::ostringstream oss; in CheckDump() local
31 irt->Dump(oss); in CheckDump()
33 EXPECT_EQ(oss.str().find("java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
35 EXPECT_NE(oss.str().find("1 of java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
37 EXPECT_NE(oss.str().find(StringPrintf("%zd of java.lang.Object (%zd unique instances)", in CheckDump()
42 << oss.str(); in CheckDump()
Dthread_list.cc298 std::ostringstream oss; in RunCheckpoint() local
299 thread->ShortDump(oss); in RunCheckpoint()
300 ATRACE_BEGIN((std::string("Waiting for suspension of thread ") + oss.str()).c_str()); in RunCheckpoint()
1085 std::ostringstream oss; in Register() local
1086 self->ShortDump(oss); // We don't hold the mutator_lock_ yet and so cannot call Dump. in Register()
1087 LOG(INFO) << "ThreadList::Register() " << *self << "\n" << oss.str(); in Register()
Delf_file.cc1097 std::ostringstream oss; in GetLoadedSize() local
1098 oss << "Program header #" << i << " has overflow in p_vaddr+p_memsz: 0x" << std::hex in GetLoadedSize()
1101 *error_msg = oss.str(); in GetLoadedSize()
1115 std::ostringstream oss; in GetLoadedSize() local
1116 oss << "Loaded size is 0x" << std::hex << loaded_size << " but maximum size_t is 0x" in GetLoadedSize()
1118 *error_msg = oss.str(); in GetLoadedSize()
1133 std::ostringstream oss; in Load() local
1134 oss << "Expected ISA " << kRuntimeISA << " but found " << elf_ISA; in Load()
1135 *error_msg = oss.str(); in Load()
Ddex_file.cc437 std::ostringstream oss; in CheckMagicAndVersion() local
438 oss << "Unrecognized magic number in " << GetLocation() << ":" in CheckMagicAndVersion()
443 *error_msg = oss.str(); in CheckMagicAndVersion()
447 std::ostringstream oss; in CheckMagicAndVersion() local
448 oss << "Unrecognized version number in " << GetLocation() << ":" in CheckMagicAndVersion()
453 *error_msg = oss.str(); in CheckMagicAndVersion()
Dmonitor.cc319 std::ostringstream oss; in ThreadToString() local
321 oss << *thread; in ThreadToString()
322 return oss.str(); in ThreadToString()
/art/runtime/base/
Dhex_dump_test.cc35 std::ostringstream oss; in TEST() local
36 oss << HexDump(test_text, strlen(test_text), false, ""); in TEST()
37 EXPECT_STREQ(oss.str().c_str(), in TEST()
44 std::ostringstream oss; in TEST() local
45 oss << HexDump(test_text, strlen(test_text), false, ""); in TEST()
46 EXPECT_STREQ(oss.str().c_str(), in TEST()
56 std::ostringstream oss; in TEST() local
57 oss << HexDump(&g16byte_aligned_number, 8, true, ""); in TEST()
59 EXPECT_STREQ(oss.str().c_str() + (kBitsPerIntPtrT / 4), in TEST()
65 std::ostringstream oss; in TEST() local
[all …]
Dhash_set_test.cc43 std::ostringstream oss; in RandomString() local
45 oss << static_cast<char>('A' + PRand() % 64); in RandomString()
48 oss << " " << unique_number_++; // Relies on ' ' < 'A' in RandomString()
49 return oss.str(); in RandomString()
/art/compiler/optimizing/
Doptimizing_compiler_stats.h77 std::ostringstream oss; in Log() local
78 oss << "Attempted compilation of " << compile_stats_[kAttemptCompilation] << " methods: "; in Log()
80 oss << unoptimized_percent << "% (" << compile_stats_[kCompiledBaseline] << ") unoptimized, "; in Log()
81 oss << optimized_percent << "% (" << compile_stats_[kCompiledOptimized] << ") optimized, "; in Log()
82 oss << quick_percent << "% (" << compile_stats_[kCompiledQuick] << ") quick."; in Log()
84 LOG(INFO) << oss.str(); in Log()
/art/compiler/utils/arm/
Dassembler_arm_test.h90 std::ostringstream oss; in RepeatTemplatedRRIIC() local
143 oss << "\n"; in RepeatTemplatedRRIIC()
145 oss << base4; in RepeatTemplatedRRIIC()
154 oss << "\n"; in RepeatTemplatedRRIIC()
156 return oss.str(); in RepeatTemplatedRRIIC()
181 std::ostringstream oss; in RepeatTemplatedRRiiC() local
235 oss << "\n"; in RepeatTemplatedRRiiC()
237 oss << after_reg2; in RepeatTemplatedRRiiC()
245 oss << "\n"; in RepeatTemplatedRRiiC()
247 return oss.str(); in RepeatTemplatedRRiiC()
[all …]
Dassembler_arm32_test.cc238 std::ostringstream oss; in GetConditionString() local
239 oss << c; in GetConditionString()
240 return oss.str(); in GetConditionString()
252 std::ostringstream oss; in GetShiftString() local
256 oss << sop.GetRegister() << ", " << sop.GetShift(); in GetShiftString()
258 oss << sop.GetRegister() << ", " << sop.GetShift() << " #" << sop.GetImmediate(); in GetShiftString()
261 oss << sop.GetRegister(); in GetShiftString()
264 oss << "#" << sop.GetImmediate(); in GetShiftString()
266 return oss.str(); in GetShiftString()
285 void ExecuteAndPrint(std::function<void()> f, std::string fmt, std::ostringstream& oss) { in ExecuteAndPrint() argument
[all …]
/art/runtime/gc/accounting/
Dmod_union_table_test.cc119 std::ostream& operator<<(std::ostream& oss, ModUnionTableFactory::TableType type) { in operator <<() argument
122 oss << "CardCache"; in operator <<()
126 oss << "ReferenceCache"; in operator <<()
133 return oss; in operator <<()
222 std::ostringstream oss; in RunTest() local
223 table->Dump(oss); in RunTest()
/art/runtime/jit/
Djit_code_cache.cc36 std::ostringstream oss; in Create() local
37 oss << "Failed to create read write execute cache: " << error_str << " size=" << capacity; in Create()
38 *error_msg = oss.str(); in Create()
Djit.cc84 std::ostringstream oss; in LoadCompiler() local
85 oss << "JIT could not load libart-compiler.so: " << dlerror(); in LoadCompiler()
86 *error_msg = oss.str(); in LoadCompiler()
/art/compiler/utils/
Ddedupe_set.h105 std::ostringstream oss; in DedupeSet() local
106 oss << set_name << " lock " << i; in DedupeSet()
107 lock_name_[i] = oss.str(); in DedupeSet()
/art/runtime/interpreter/
Dinterpreter_common.h365 std::ostringstream oss; in TraceExecution() local
366 oss << PrettyMethod(shadow_frame.GetMethod()) in TraceExecution()
372 oss << StringPrintf(" vreg%u=0x%08X", i, raw_value); in TraceExecution()
376 oss << "/java.lang.String \"" << ref_value->AsString()->ToModifiedUtf8() << "\""; in TraceExecution()
378 oss << "/" << PrettyTypeOf(ref_value); in TraceExecution()
382 TRACE_LOG << oss.str() << "\n"; in TraceExecution()
/art/compiler/linker/
Drelative_patcher_test.h204 std::ostringstream oss; in DumpDiff() local
205 oss << "[stripped " << remove << "]"; in DumpDiff()
206 std::string replacement = oss.str(); in DumpDiff()
/art/compiler/driver/
Dcompiler_driver.cc136 std::ostringstream oss; in Dump() local
137 oss << static_cast<InvokeType>(i) << " methods were AOT resolved"; in Dump()
138 DumpStat(resolved_methods_[i], unresolved_methods_[i], oss.str().c_str()); in Dump()
2492 std::ostringstream oss; in GetMemoryUsageString() local
2496 oss << "arena alloc=" << PrettySize(arena_pool->GetBytesAllocated()); in GetMemoryUsageString()
2497 oss << " java alloc=" << PrettySize(heap->GetBytesAllocated()); in GetMemoryUsageString()
2502 oss << " native alloc=" << PrettySize(allocated_space) << " free=" in GetMemoryUsageString()
2506 oss << " swap=" << PrettySize(swap_space_->GetSize()); in GetMemoryUsageString()
2509 oss << "\nCode dedupe: " << dedupe_code_.DumpStats(); in GetMemoryUsageString()
2510 oss << "\nMapping table dedupe: " << dedupe_mapping_table_.DumpStats(); in GetMemoryUsageString()
[all …]
/art/runtime/gc/collector/
Dsemi_space.cc172 std::ostringstream oss; in MarkingPhase() local
174 runtime->GetThreadList()->DumpForSigQuit(oss); in MarkingPhase()
175 runtime->GetThreadList()->DumpNativeStacks(oss); in MarkingPhase()
176 runtime->SetFaultMessage(oss.str()); in MarkingPhase()
/art/dex2oat/
Ddex2oat.cc1073 std::ostringstream oss; in ParseArgs() local
1076 oss << ' '; in ParseArgs()
1078 oss << argv[i]; in ParseArgs()
1080 key_value_store_->Put(OatHeader::kDex2OatCmdLineKey, oss.str()); in ParseArgs()
1081 oss.str(""); // Reset. in ParseArgs()
1082 oss << kRuntimeISA; in ParseArgs()
1083 key_value_store_->Put(OatHeader::kDex2OatHostKey, oss.str()); in ParseArgs()
/art/runtime/gc/
Dheap.cc1139 std::ostringstream oss; in ThrowOutOfMemoryError() local
1141 oss << "Failed to allocate a " << byte_count << " byte allocation with " << total_bytes_free in ThrowOutOfMemoryError()
1159 space->LogFragmentationAllocFailure(oss, byte_count); in ThrowOutOfMemoryError()
1162 self->ThrowOutOfMemoryError(oss.str().c_str()); in ThrowOutOfMemoryError()
1402 std::ostringstream oss; in DumpSpaces() local
1403 DumpSpaces(oss); in DumpSpaces()
1404 return oss.str(); in DumpSpaces()