Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DumpDebugLog (0.14 sec)

  1. src/runtime/debuglog_test.go

    	got := dlogCanonicalize(runtime.DumpDebugLog())
    	if want := "[] true false -42 32767 18446744073709551615 0xfff 0x0 aaaa const string\n"; got != want {
    		t.Fatalf("want %q, got %q", want, got)
    	}
    }
    
    func TestDebugLogSym(t *testing.T) {
    	skipDebugLog(t)
    	runtime.ResetDebugLog()
    	pc, _, _, _ := runtime.Caller(0)
    	runtime.Dlog().PC(pc).End()
    	got := dlogCanonicalize(runtime.DumpDebugLog())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/export_debuglog_test.go

    func (l *dlogger) P(x any) *dlogger      { return l.p(x) }
    func (l *dlogger) S(x string) *dlogger   { return l.s(x) }
    func (l *dlogger) PC(x uintptr) *dlogger { return l.pc(x) }
    
    func DumpDebugLog() string {
    	gp := getg()
    	gp.writebuf = make([]byte, 0, 1<<20)
    	printDebugLog()
    	buf := gp.writebuf
    	gp.writebuf = nil
    
    	return string(buf)
    }
    
    func ResetDebugLog() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 16:49:45 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top