zx_sampler_stop
Summary
Stop writing samples to the provided IOBuffer.
Declaration
#include <zircon/syscalls.h>
zx_status_t zx_sampler_stop(zx_handle_t iobuffer);
Description
Stop sampling each attached thread and finish writing any in flight
samples to the iobuffer. This call will return after no additional
samples will be written. The provided IOBuffer must be one previously
returned by zx_sampler_create.
Attempting to stop a session which has already been stopped will return
an error, but will not modify the session.
Errors
ZX_ERR_NOT_SUPPORTED kernel.enable-debugging-syscalls is not set to true
on the kernel command line.
ZX_ERR_PERMISION_DENIED iobuffer is not an IOBuffer returned by zx_sampler_create.
ZX_ERR_BAD_STATE the sampler has not started or has already been
stopped
See also
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-08-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-31 UTC."],[],[]]