Debug

GET /debug/circuits/slots

Return information about the slots in the tunnel overlay.

Status Codes
Response JSON Object
  • slots[].competing (integer) –

  • slots[].random (integer) –

POST /debug/core_test_exception

Generates a test exception in the Core process.

Status Codes
Response JSON Object
  • success (boolean) –

GET /debug/cpu/history

Return information about CPU usage history.

Status Codes
Response JSON Object
  • cpu_history[].cpu (number) –

  • cpu_history[].time (integer) –

GET /debug/log

Return content of core or gui log file & max_lines requested.

Query Parameters
  • process (string) – Specifies which log to return

  • max_lines (integer) – Maximum number of lines to return from the log file

Status Codes
Response JSON Object
  • content (string) –

  • max_lines (integer) –

GET /debug/memory/history

Return information about memory usage history.

Status Codes
Response JSON Object
  • memory_history[].mem (integer) –

  • memory_history[].time (integer) –

GET /debug/open_files

Return information about files opened by Tribler.

Status Codes
Response JSON Object
  • open_files[].fd (integer) –

  • open_files[].path (string) –

GET /debug/open_sockets

Return information about open sockets.

Status Codes
Response JSON Object
  • open_sockets[].family (integer) –

  • open_sockets[].laddr (string) –

  • open_sockets[].raddr (string) –

  • open_sockets[].status (string) –

  • open_sockets[].type (integer) –

DELETE /debug/profiler

Stop the profiler.

Status Codes
Response JSON Object
  • success (boolean) –

GET /debug/profiler

Return information about the state of the profiler.

Status Codes
Response JSON Object
  • state (string) – State of the profiler (STARTED or STOPPED)

PUT /debug/profiler

Start the profiler.

Status Codes
Response JSON Object
  • success (boolean) –

GET /debug/threads

Return information about running threads.

Status Codes
Response JSON Object
  • threads[].frames[] (string) –

  • threads[].thread_id (integer) –

  • threads[].thread_name (string) –