Debug
- POST /debug/core_test_exception
Generates a test exception in the Core process.
- Status Codes:
200 OK –
- Response JSON Object:
success (boolean) –
- GET /debug/cpu/history
Return information about CPU usage history.
- Status Codes:
200 OK –
- 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:
200 OK –
- Response JSON Object:
content (string) –
max_lines (integer) –
- GET /debug/memory/history
Return information about memory usage history.
- Status Codes:
200 OK –
- Response JSON Object:
memory_history[].mem (integer) –
memory_history[].time (integer) –
- GET /debug/open_files
Return information about files opened by Tribler.
- Status Codes:
200 OK –
- Response JSON Object:
open_files[].fd (integer) –
open_files[].path (string) –
- GET /debug/open_sockets
Return information about open sockets.
- Status Codes:
200 OK –
- 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:
200 OK –
- Response JSON Object:
success (boolean) –
- GET /debug/profiler
Return information about the state of the profiler.
- Status Codes:
200 OK –
- Response JSON Object:
state (string) – State of the profiler (STARTED or STOPPED)