QuackDB.Profile.System (quackdb v0.7.0)

Copy Markdown View Source

Memory and scheduling metrics of a DuckDB profile.

Summary

Functions

Decodes a JSON string into this struct.

Decodes a JSON string into this struct, raising on failure.

Dumps this struct into JSON-shaped data, respecting JSON field names.

Builds this struct from a decoded JSON map.

Builds this struct from a decoded JSON map, raising on failure.

Returns a JSON Schema-compatible schema map.

Types

t()

@type t() :: %QuackDB.Profile.System{
  blocked_thread_time: number() | nil,
  peak_buffer_memory: non_neg_integer() | nil,
  peak_streaming_buffer_size: non_neg_integer() | nil,
  peak_temp_dir_size: non_neg_integer() | nil,
  total_memory_allocated: non_neg_integer() | nil
}

Functions

decode(json)

Decodes a JSON string into this struct.

decode!(json)

Decodes a JSON string into this struct, raising on failure.

dump(struct)

Dumps this struct into JSON-shaped data, respecting JSON field names.

from_map(map)

Builds this struct from a decoded JSON map.

from_map!(map)

Builds this struct from a decoded JSON map, raising on failure.

schema()

Returns a JSON Schema-compatible schema map.