Lines Matching refs:perfetto
43 using perfetto::profiling::ScopedSpinlock;
44 using perfetto::profiling::UnhookedAllocator;
130 perfetto::base::NoDestructor<std::shared_ptr<perfetto::profiling::Client>>
237 std::shared_ptr<perfetto::profiling::Client> CreateClientForCentralDaemon( in CreateClientForCentralDaemon()
238 UnhookedAllocator<perfetto::profiling::Client> unhooked_allocator) { in CreateClientForCentralDaemon()
240 using perfetto::profiling::Client; in CreateClientForCentralDaemon()
242 perfetto::base::Optional<perfetto::base::UnixSocketRaw> sock = in CreateClientForCentralDaemon()
243 Client::ConnectToHeapprofd(perfetto::profiling::kHeapprofdSocketFile); in CreateClientForCentralDaemon()
250 std::shared_ptr<perfetto::profiling::Client> CreateClientAndPrivateDaemon( in CreateClientAndPrivateDaemon()
251 UnhookedAllocator<perfetto::profiling::Client> unhooked_allocator) { in CreateClientAndPrivateDaemon()
253 perfetto::base::UnixSocketRaw parent_sock; in CreateClientAndPrivateDaemon()
254 perfetto::base::UnixSocketRaw child_sock; in CreateClientAndPrivateDaemon()
255 std::tie(parent_sock, child_sock) = perfetto::base::UnixSocketRaw::CreatePair( in CreateClientAndPrivateDaemon()
256 perfetto::base::SockType::kStream); in CreateClientAndPrivateDaemon()
268 if (!perfetto::profiling::GetCmdlineForPID(target_pid, &target_cmdline)) { in CreateClientAndPrivateDaemon()
307 if (!parent_sock.SetTxTimeout(perfetto::profiling::kClientSockTimeoutMs)) { in CreateClientAndPrivateDaemon()
312 if (!parent_sock.SetRxTimeout(perfetto::profiling::kClientSockTimeoutMs)) { in CreateClientAndPrivateDaemon()
326 return perfetto::profiling::Client::CreateAndHandshake(std::move(parent_sock), in CreateClientAndPrivateDaemon()
367 using ::perfetto::profiling::Client; in HEAPPROFD_ADD_PREFIX()
438 std::shared_ptr<perfetto::profiling::Client> client; in MaybeSampleAllocation()
505 std::shared_ptr<perfetto::profiling::Client> client; in HEAPPROFD_ADD_PREFIX()
533 std::shared_ptr<perfetto::profiling::Client> client; in HEAPPROFD_ADD_PREFIX()