HomeSort by relevance Sort by last modified time
    Searched refs:ScopedTraceMemory (Results 1 - 3 of 3) sorted by null

  /external/chromium_org/base/debug/
trace_event_memory_unittest.cc 71 TEST_F(TraceMemoryTest, ScopedTraceMemory) {
72 ScopedTraceMemory::InitForTest();
75 EXPECT_EQ(0, ScopedTraceMemory::GetStackDepthForTest());
79 ScopedTraceMemory scope1("cat1", "name1");
80 EXPECT_EQ(1, ScopedTraceMemory::GetStackDepthForTest());
81 EXPECT_EQ("cat1", ScopedTraceMemory::GetScopeDataForTest(0).category);
82 EXPECT_EQ("name1", ScopedTraceMemory::GetScopeDataForTest(0).name);
86 ScopedTraceMemory scope2("cat2", "name2");
87 EXPECT_EQ(2, ScopedTraceMemory::GetStackDepthForTest());
88 EXPECT_EQ("cat2", ScopedTraceMemory::GetScopeDataForTest(1).category)
    [all...]
trace_event_memory.h 88 class BASE_EXPORT ScopedTraceMemory {
97 ScopedTraceMemory(const char* category, const char* name) {
102 ~ScopedTraceMemory() {
122 DISALLOW_COPY_AND_ASSIGN(ScopedTraceMemory);
162 base::debug::ScopedTraceMemory INTERNAL_TRACE_MEMORY_ID(category, name);
trace_event_memory.cc 61 ScopedTraceMemory::ScopeData scope_data[kMaxScopeDepth];
201 ScopedTraceMemory::set_enabled(true);
234 ScopedTraceMemory::set_enabled(false);
247 bool ScopedTraceMemory::enabled_ = false;
249 void ScopedTraceMemory::Initialize(const char* category, const char* name) {
264 void ScopedTraceMemory::Destroy() {
268 // The tracing system can be turned on with ScopedTraceMemory objects
275 void ScopedTraceMemory::InitForTest() {
281 void ScopedTraceMemory::CleanupForTest() {
287 int ScopedTraceMemory::GetStackDepthForTest()
    [all...]

Completed in 48 milliseconds