Esempio n. 1
0
File: pprof.cs Progetto: zjmit/go2cs
 // Cmdline responds with the running program's
 // command line, with arguments separated by NUL bytes.
 // The package initialization registers it as /debug/pprof/cmdline.
 public static void Cmdline(http.ResponseWriter w, ptr <http.Request> _addr_r)
 {
     ref http.Request r = ref _addr_r.val;
Esempio n. 2
0
 // httpGoroutines serves list of goroutine groups.
 private static void httpGoroutines(http.ResponseWriter w, ptr <http.Request> _addr_r)
 {
     ref http.Request r = ref _addr_r.val;
Esempio n. 3
0
 // Runs at /debug/rpc
 private static void ServeHTTP(this debugHTTP server, http.ResponseWriter w, ptr <http.Request> _addr_req)
 {
     ref http.Request req = ref _addr_req.val;
Esempio n. 4
0
 private static void ServeHTTP(this ptr <statusHandler> _addr_h, http.ResponseWriter w, ptr <http.Request> _addr_r)
 {
     ref statusHandler h = ref _addr_h.val;
Esempio n. 5
0
 // flamegraph generates a web page containing a flamegraph.
 private static void flamegraph(this ptr <webInterface> _addr_ui, http.ResponseWriter w, ptr <http.Request> _addr_req)
 {
     ref webInterface ui  = ref _addr_ui.val;