template <>

class WireServer

Defined at line 384 of file fidling/gen/sdk/fidl/fuchsia.memory.sampler/fuchsia.memory.sampler/cpp/fidl/fuchsia.memory.sampler/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_memory_sampler::Sampler>|

and |::fidl::ServerEnd

<

::fuchsia_memory_sampler::Sampler>|).

Public Methods

void RecordAllocation (::fuchsia_memory_sampler::wire::SamplerRecordAllocationRequest * request, RecordAllocationCompleter::Sync & completer)

Record an allocation.

void RecordDeallocation (::fuchsia_memory_sampler::wire::SamplerRecordDeallocationRequest * request, RecordDeallocationCompleter::Sync & completer)

Record a deallocation.

void SetProcessInfo (::fuchsia_memory_sampler::wire::SamplerSetProcessInfoRequest * request, SetProcessInfoCompleter::Sync & completer)

Communicate relevant process information to facilitate symbolization.

If called several times, the last `process_name` prevails, but the

`module_map` is added to the existing map for the process. If a client

needs to send a `module_map` that does not fit in a single message, they

can split it and send it across several messages.

void WireServer ()

Defined at line 387 of file fidling/gen/sdk/fidl/fuchsia.memory.sampler/fuchsia.memory.sampler/cpp/fidl/fuchsia.memory.sampler/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 388 of file fidling/gen/sdk/fidl/fuchsia.memory.sampler/fuchsia.memory.sampler/cpp/fidl/fuchsia.memory.sampler/cpp/wire_messaging.h