Function profiler_get_symbols::query_api[][src]

pub async fn query_api(
    request_url: &str,
    request_json_data: &str,
    helper: &impl FileAndPathHelper
) -> String
Expand description

This is the main API of this crate. It implements the “Tecken” JSON API, which is also used by the Mozilla symbol server. It’s intended to be used as a drop-in “local symbol server” which gathers its data directly from file artifacts produced during compilation (rather than consulting e.g. a database). The caller needs to implement the FileAndPathHelper trait to provide file system access. The return value is a JSON string.

The following “URLs” are supported:

  • /symbolicate/v5: This API is documented at https://tecken.readthedocs.io/en/latest/symbolication.html.
  • /symbolicate/v6a2: Same request API as v5, but richer response data. This is still experimental. See the raw response struct definitions in symbolicate/v6/response_json.rs for details. V6 extends V5 by inline callstacks and filename + line number data, and richer error reporting.