Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module memory_infra.mojom; | |
| 6 | |
| 7 enum DumpType { | |
| 8 PERIODIC_INTERVAL, | |
| 9 EXPLICITLY_TRIGGERED, | |
| 10 PEAK_MEMORY_USAGE, | |
| 11 LAST = PEAK_MEMORY_USAGE | |
| 12 }; | |
| 13 | |
| 14 enum LevelOfDetail { | |
| 15 FIRST, | |
| 16 BACKGROUND = FIRST, | |
| 17 LIGHT, | |
| 18 DETAILED, | |
| 19 LAST = DETAILED | |
| 20 }; | |
| 21 | |
| 22 struct RequestArgs { | |
| 23 uint64 dump_guid; | |
| 24 DumpType dump_type; | |
| 25 LevelOfDetail level_of_detail; | |
| 26 }; | |
| 27 | |
| 28 // Memory Infra clients implement this interface. There should be at most one | |
| 29 // client per process. | |
| 30 interface Client { | |
| 31 RequestLocalMemoryDump(RequestArgs args) => (uint64 dump_guid, bool success); | |
|
ssid
2017/01/11 00:13:25
I'd prefer Process over Local here since the name
chiniforooshan1
2017/01/11 16:07:44
Done.
| |
| 32 }; | |
| 33 | |
| 34 // Memory Infra service implements this interface. Clients register themselves | |
| 35 // using the RegisterClient method and suggest a global memory dump using the | |
| 36 // RequestGlobalMemoryDump method. | |
| 37 interface Coordinator { | |
| 38 RegisterClient(Client client); | |
| 39 RequestGlobalMemoryDump(RequestArgs args) => (uint64 dump_guid, bool success); | |
| 40 }; | |
| OLD | NEW |