| OLD | NEW | 
|---|
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 import("//chrome/common/features.gni") | 5 import("//chrome/common/features.gni") | 
| 6 | 6 | 
| 7 if (enable_oop_heap_profiling) { | 7 if (enable_oop_heap_profiling) { | 
| 8   static_library("profiling") { | 8   static_library("profiling") { | 
| 9     sources = [ | 9     sources = [ | 
|  | 10       "address.h", | 
|  | 11       "allocation_tracker.cc", | 
|  | 12       "allocation_tracker.h", | 
|  | 13       "backtrace.cc", | 
|  | 14       "backtrace.h", | 
|  | 15       "backtrace_storage.cc", | 
|  | 16       "backtrace_storage.h", | 
|  | 17       "memlog_connection_manager.cc", | 
|  | 18       "memlog_connection_manager.h", | 
|  | 19       "memlog_receiver.h", | 
|  | 20       "memlog_receiver_pipe_server.h", | 
| 10       "memlog_receiver_pipe_server_win.cc", | 21       "memlog_receiver_pipe_server_win.cc", | 
| 11       "memlog_receiver_pipe_server_win.h", | 22       "memlog_receiver_pipe_server_win.h", | 
| 12       "memlog_receiver_pipe_win.cc", | 23       "memlog_receiver_pipe_win.cc", | 
| 13       "memlog_receiver_pipe_win.h", | 24       "memlog_receiver_pipe_win.h", | 
|  | 25       "memlog_stream_parser.cc", | 
|  | 26       "memlog_stream_parser.h", | 
| 14       "memlog_stream_receiver.h", | 27       "memlog_stream_receiver.h", | 
| 15       "profiling_globals.cc", | 28       "profiling_globals.cc", | 
| 16       "profiling_globals.h", | 29       "profiling_globals.h", | 
| 17       "profiling_main.cc", | 30       "profiling_main.cc", | 
| 18       "profiling_main.h", | 31       "profiling_main.h", | 
| 19     ] | 32     ] | 
| 20 | 33 | 
| 21     deps = [ | 34     deps = [ | 
| 22       "//base", | 35       "//base", | 
| 23       "//chrome/common", | 36       "//chrome/common", | 
| 24       "//mojo/edk/system", | 37       "//mojo/edk/system", | 
| 25     ] | 38     ] | 
| 26   } | 39   } | 
| 27 } else { | 40 } else { | 
| 28   # Dummy target so this can be unconditionally depended on and header checking | 41   # Dummy target so this can be unconditionally depended on and header checking | 
| 29   # will work. | 42   # will work. | 
| 30   source_set("profiling") { | 43   source_set("profiling") { | 
| 31     sources = [ | 44     sources = [ | 
| 32       "profiling_main.h", | 45       "profiling_main.h", | 
| 33     ] | 46     ] | 
| 34   } | 47   } | 
| 35 } | 48 } | 
| OLD | NEW | 
|---|