| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/trace_event/memory_dump_manager.h" | 9 #include "base/trace_event/memory_dump_manager.h" |
| 10 #include "base/trace_event/trace_config.h" | 10 #include "base/trace_event/trace_config.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 "{" | 29 "{" |
| 30 "\"enable_argument_filter\":true," | 30 "\"enable_argument_filter\":true," |
| 31 "\"enable_sampling\":true," | 31 "\"enable_sampling\":true," |
| 32 "\"enable_systrace\":true," | 32 "\"enable_systrace\":true," |
| 33 "\"excluded_categories\":[\"excluded\",\"exc_pattern*\"]," | 33 "\"excluded_categories\":[\"excluded\",\"exc_pattern*\"]," |
| 34 "\"included_categories\":[\"included\"," | 34 "\"included_categories\":[\"included\"," |
| 35 "\"inc_pattern*\"," | 35 "\"inc_pattern*\"," |
| 36 "\"disabled-by-default-cc\"," | 36 "\"disabled-by-default-cc\"," |
| 37 "\"disabled-by-default-memory-infra\"]," | 37 "\"disabled-by-default-memory-infra\"]," |
| 38 "\"memory_dump_config\":{" | 38 "\"memory_dump_config\":{" |
| 39 "\"allowed_dump_modes\":[\"background\",\"light\",\"detailed\"]," |
| 39 "\"heap_profiler_options\":{" | 40 "\"heap_profiler_options\":{" |
| 40 "\"breakdown_threshold_bytes\":10240" | 41 "\"breakdown_threshold_bytes\":10240" |
| 41 "}," | 42 "}," |
| 42 "\"triggers\":[" | 43 "\"triggers\":[" |
| 43 "{\"mode\":\"light\",\"periodic_interval_ms\":50}," | 44 "{\"mode\":\"light\",\"periodic_interval_ms\":50}," |
| 44 "{\"mode\":\"detailed\",\"periodic_interval_ms\":1000}" | 45 "{\"mode\":\"detailed\",\"periodic_interval_ms\":1000}" |
| 45 "]" | 46 "]" |
| 46 "}," | 47 "}," |
| 47 "\"record_mode\":\"record-continuously\"," | 48 "\"record_mode\":\"record-continuously\"," |
| 48 "\"synthetic_delays\":[\"test.Delay1;16\",\"test.Delay2;32\"]" | 49 "\"synthetic_delays\":[\"test.Delay1;16\",\"test.Delay2;32\"]" |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); | 616 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); |
| 616 EXPECT_EQ(2u, tc.memory_dump_config_.triggers.size()); | 617 EXPECT_EQ(2u, tc.memory_dump_config_.triggers.size()); |
| 617 EXPECT_EQ(TraceConfig::MemoryDumpConfig::HeapProfiler | 618 EXPECT_EQ(TraceConfig::MemoryDumpConfig::HeapProfiler |
| 618 ::kDefaultBreakdownThresholdBytes, | 619 ::kDefaultBreakdownThresholdBytes, |
| 619 tc.memory_dump_config_.heap_profiler_options | 620 tc.memory_dump_config_.heap_profiler_options |
| 620 .breakdown_threshold_bytes); | 621 .breakdown_threshold_bytes); |
| 621 } | 622 } |
| 622 | 623 |
| 623 } // namespace trace_event | 624 } // namespace trace_event |
| 624 } // namespace base | 625 } // namespace base |
| OLD | NEW |