Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: chrome/profiling/memlog_receiver.h

Issue 2943733002: Add out-of-process memory logging stream parsing. (Closed)
Patch Set: Add TODO Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 #ifndef CHROME_PROFILING_MEMLOG_RECEIVER_H_
6 #define CHROME_PROFILING_MEMLOG_RECEIVER_H_
7
8 #include <vector>
9
10 #include "base/memory/ref_counted.h"
11 #include "chrome/common/profiling/memlog_stream.h"
12 #include "chrome/profiling/address.h"
13
14 namespace profiling {
15
16 // A log receiver is a sink for parsed allocation events. See also
17 // MemlogStreamReceiver which is for the unparsed data blocks.
18 class MemlogReceiver {
19 public:
20 virtual ~MemlogReceiver() {}
21
22 virtual void OnHeader(const StreamHeader& header) = 0;
23 virtual void OnAlloc(const AllocPacket& alloc_packet,
24 std::vector<Address>&& stack) = 0;
25 virtual void OnFree(const FreePacket& free_packet) = 0;
26 virtual void OnComplete() = 0;
27 };
28
29 } // namespace profiling
30
31 #endif // CHROME_PROFILING_MEMLOG_RECEIVER_H_
OLDNEW
« no previous file with comments | « chrome/profiling/memlog_connection_manager.cc ('k') | chrome/profiling/memlog_receiver_pipe_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698