mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibCore+rpcdump: Publish CObject graph to on-demand RPC socket
All programs that have a CEventLoop now allow local socket connections via /tmp/rpc.PID and will dump a serialized JSON array of all the live CObjects in the program onto connecting sockets. Also added a small /bin/rpcdump tool that connects to an RPC socket and produces a raw dump of the JSON that comes out.
This commit is contained in:
parent
2fa2d72761
commit
1febd59f83
3 changed files with 77 additions and 1 deletions
|
@ -5,8 +5,9 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibCore/CLock.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
#include <LibCore/CLocalServer.h>
|
||||
#include <LibCore/CLock.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
@ -85,4 +86,6 @@ private:
|
|||
static int s_next_timer_id;
|
||||
|
||||
static HashTable<CNotifier*>* s_notifiers;
|
||||
|
||||
static CLocalServer s_rpc_server;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue