Sha256: f85e94e760a24a3ee2d9f23e47d6fcc65d9dacb3ca837078f9d7f3b2a024fb78

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

// 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<string, string> 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) {}
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
libra_client-0.1.7 protos/node_debug_interface.proto