'.. http:get:: /statistics/tribler
A GET request to this endpoint returns general statistics in Tribler.
The size of the Tribler database is in bytes.
**Example request**:
.. sourcecode:: none
curl -X GET http://localhost:8085/statistics/tribler
**Example response**:
.. sourcecode:: javascript
"tribler_statistics": {
"num_channels": 1234,
"database_size": 384923,
"torrent_queue_stats": [{
"failed": 2,
"total": 9,
"type": "TFTP",
"pending": 1,
"success": 6'

def render_GET(self, request):

    return json.dumps({'tribler_statistics': self.session.get_tribler_statistics()})
