RSX Code Reference
    Preparing search index...
    • rsx
    • ScriptProfilerClient

    Class ScriptProfilerClient

    Mediates communication between ProfilerRuntime in C++ and ProfilerWindow in TypeScript. Allows ProfilerWindow to control the profiling process and then receive the resulting data.

    Index
    • Plain constructor.

      Parameters

      • OptionalisInternalConstructor: boolean

      Returns ScriptProfilerClient

    • Removes some data from the beginning and end of profiling so that there aren't incomplete call stacks (with missing parent samples) in resulting flamegraph.

      Parameters

      Returns void

    • Removes some data from the beginning and end of profiling so that there aren't incomplete call stacks (with missing parent samples) in resulting flamegraph.

      Returns void

    • Configures if client should request ProfilerRuntime to perform profiling and send profiled data to it.

      Parameters

      • enable: boolean

        True if profiling should be running, false otherwise.

      Returns void

    • Configures if script events should capture values of stats.

      Parameters

      • enable: boolean

        True if stats should be enabled, false otherwise.

      Returns void

    • Removes all samples from database except for samples that are inside a root sample with frame identifier that is listed in given array.

      Parameters

      • frameIdentifier: number

      Returns void

    • Returns current frame identifier from profiler runtime.

      Returns number

    • Returns current time according to profiler runtime.

      Returns number

      Current profiler time in nanoseconds.

    • Returns profiler index containing data captured during profiling of this RSX Framework process.

      Returns ProfilerIndex

    • Returns boolean value telling us whether profiling is enabled on this profiler client.

      Returns boolean

      True if profiling is currently enabled.

    • If ProfilerDatabase contains any data, these will be moved to ProfilerIndex. This also clamps begin and end of the data, so this should not be used to continuously insert incoming data.

      Returns void

    • This is here to trigger script bindings generator to include this file from the script bindings. The inclusion does not seem to be triggered by exporting functions with Shared or Vector.

      Returns ScriptProfilerClient

    • Registers profiler client into ProfilerRuntime and ProfilerDatabase to get callbacks about incoming data. This is static instead of member so that we get the Shared pointer, which is needed for registration to profiler.

      Parameters

      • self: ScriptProfilerClient

        Pointer to the profiler client that should be registered into profiler runtime.

      Returns void