46f9ae9568
profiler events. `Event.cpuSamples` is now a `CpuSamplesEvent` rather than a `CpuSamples` object, where `CpuSamplesEvent` returns `(@Object|NativeFunction)[]` rather than `(@Func|NativeFunction)[]`, resulting in a smaller JSON payload. TEST=get_object_rpc_test.dart,get_cached_cpu_samples_test.dart Change-Id: I1ad5e3df8840b8c41735d10c6c8669f6503e54a8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/219284 Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>