Skip to main content

xenon_get_and_clear_samples

Note

This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.

TODO: this will replace xenon_get_data() this function is same as xenon_get_data() except that it deletes the stack traces that are returned

namespace HH;

function xenon_get_and_clear_samples(): varray<XenonSample>;

Returns

  • varray<XenonSample>