Skip to content

Commit

Permalink
Add support to dump igprof of renderplugin processes
Browse files Browse the repository at this point in the history
  • Loading branch information
rovere committed Nov 10, 2016
1 parent 416b824 commit 8702a2f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sendIgProfDump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python

import socket
import struct
from io import BytesIO as bio
import sys

sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
server_address = '/data/srv/state/dqmgui/dev/render-0/socket'

sock.connect(server_address)
message = bio()
message.write(struct.pack('4I', 16, 5, 0, 0))

sock.sendall(message.getvalue())
sock.close()

0 comments on commit 8702a2f

Please sign in to comment.