| Index: content/common/child_process_messages.h
|
| diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
|
| index 18d7245e89b243a9967bd238fe75b0cf21f006b6..52285a86b0e8dc7ae03af3c258bc2b95a0288fd2 100644
|
| --- a/content/common/child_process_messages.h
|
| +++ b/content/common/child_process_messages.h
|
| @@ -9,11 +9,13 @@
|
| #include <vector>
|
|
|
| #include "base/memory/shared_memory.h"
|
| +#include "base/profiler/stack_sampling_profiler.h"
|
| #include "base/tracked_objects.h"
|
| #include "base/values.h"
|
| #include "cc/resources/shared_bitmap_manager.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/host_discardable_shared_memory_manager.h"
|
| +#include "content/common/profiled_stack_state.h"
|
| #include "ipc/ipc_message_macros.h"
|
| #include "ui/gfx/gpu_memory_buffer.h"
|
| #include "ui/gfx/ipc/gfx_param_traits.h"
|
| @@ -64,6 +66,34 @@ IPC_STRUCT_TRAITS_END()
|
| IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType,
|
| gfx::GPU_MEMORY_BUFFER_TYPE_LAST)
|
|
|
| +IPC_ENUM_TRAITS_MAX_VALUE(content::ProfiledStackState::Trigger,
|
| + content::ProfiledStackState::TRIGGER_LAST)
|
| +
|
| +IPC_STRUCT_TRAITS_BEGIN(base::StackSamplingProfiler::Module)
|
| + IPC_STRUCT_TRAITS_MEMBER(base_address)
|
| + IPC_STRUCT_TRAITS_MEMBER(id)
|
| + IPC_STRUCT_TRAITS_MEMBER(filename)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| +IPC_STRUCT_TRAITS_BEGIN(base::StackSamplingProfiler::Frame)
|
| + IPC_STRUCT_TRAITS_MEMBER(instruction_pointer)
|
| + IPC_STRUCT_TRAITS_MEMBER(module_index)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| +IPC_STRUCT_TRAITS_BEGIN(base::StackSamplingProfiler::CallStackProfile)
|
| + IPC_STRUCT_TRAITS_MEMBER(modules)
|
| + IPC_STRUCT_TRAITS_MEMBER(samples)
|
| + IPC_STRUCT_TRAITS_MEMBER(profile_duration)
|
| + IPC_STRUCT_TRAITS_MEMBER(sampling_period)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| +IPC_STRUCT_TRAITS_BEGIN(content::ProfiledStackState)
|
| + IPC_STRUCT_TRAITS_MEMBER(trigger)
|
| + IPC_STRUCT_TRAITS_MEMBER(preserve_sample_ordering)
|
| + IPC_STRUCT_TRAITS_MEMBER(start_timestamp)
|
| + IPC_STRUCT_TRAITS_MEMBER(profiles)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle)
|
| IPC_STRUCT_TRAITS_MEMBER(id)
|
| IPC_STRUCT_TRAITS_MEMBER(type)
|
| @@ -145,6 +175,9 @@ IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData,
|
| int, /* sequence_number */
|
| std::vector<std::string> /* histogram_data */)
|
|
|
| +IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_ChildStackProfilerData,
|
| + content::ProfiledStackState /* profiles_state */)
|
| +
|
| // Request a histogram from the browser. The browser will send the histogram
|
| // data only if it has been passed the command line flag
|
| // switches::kDomAutomationController.
|
|
|