// Copyright (c) The Libra Core Contributors // SPDX-License-Identifier: Apache-2.0 // A Debugging interface to be used to query debug information from a Node syntax = "proto3"; package debug; message GetNodeDetailsRequest {} message GetNodeDetailsResponse { map stats = 1; } message GetEventsRequest {} message GetEventsResponse { repeated Event events = 1; } message Event { string name = 1; int64 timestamp = 2; string json = 3; } message DumpJemallocHeapProfileRequest {} message DumpJemallocHeapProfileResponse { // Status code from jemalloc mallctl call. 0 indicates success. int32 status_code = 1; } service NodeDebugInterface { // Returns debug information about node rpc GetNodeDetails(GetNodeDetailsRequest) returns (GetNodeDetailsResponse) {} // Returns recent events generated by event! macro rpc GetEvents(GetEventsRequest) returns (GetEventsResponse) {} // Triggers a dump of heap profile. rpc DumpJemallocHeapProfile(DumpJemallocHeapProfileRequest) returns (DumpJemallocHeapProfileResponse) {} }