Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 441 for ktrace (0.1 sec)

  1. src/runtime/tracecpu.go

    	trace.cpuLogRead[1].close()
    	trace.cpuSleep.wake()
    
    	// Wait until the logger goroutine exits.
    	<-trace.cpuLogDone
    
    	// Clear state for the next trace.
    	trace.cpuLogDone = nil
    	trace.cpuLogRead[0] = nil
    	trace.cpuLogRead[1] = nil
    	trace.cpuSleep.close()
    }
    
    // traceReadCPU attempts to read from the provided profBuf[gen%2] and write
    // into the trace. Returns true if there might be more to read or false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.go

    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine is exiting with a syscall. It already
    	// acquired a new P.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1009 bytes
    - Viewed (0)
  3. src/internal/trace/testdata/generators/go122-syscall-steal-proc-ambiguous.go

    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("GoSyscallEnd")
    	b0.Event("GoSyscallBegin", testgen.Seq(2), testgen.NoStack)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A running goroutine steals proc 0.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    	b1.Event("ProcStatus", trace.ProcID(2), go122.ProcRunning)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/cmd/trace/testdata/mktests.go

    import (
    	"bytes"
    	"fmt"
    	"internal/trace/raw"
    	"internal/trace/version"
    	"io"
    	"log"
    	"os"
    	"os/exec"
    )
    
    func main() {
    	// Create command.
    	var trace, stderr bytes.Buffer
    	cmd := exec.Command("go", "run", "./testprog/main.go")
    	cmd.Stdout = &trace
    	cmd.Stderr = &stderr
    
    	// Run trace program; the trace will appear in stdout.
    	fmt.Fprintln(os.Stderr, "running trace program...")
    	if err := cmd.Run(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/generators/go122-create-syscall-reuse-thread-id.go

    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// A C thread calls into Go and acquires a P. It returns
    	// back to C, destroying the G.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("GoCreateSyscall", trace.GoID(4))
    	b0.Event("GoSyscallEndBlocked")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/testprog/annotations.go

    	}
    
    	// Beginning of traced execution.
    	var wg sync.WaitGroup
    	ctx, task := trace.NewTask(bgctx, "task0") // EvUserTaskCreate("task0")
    	trace.StartRegion(ctx, "task0 region")
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		defer task.End() // EvUserTaskEnd("task0")
    
    		trace.StartRegion(ctx, "unended region")
    
    		trace.WithRegion(ctx, "region0", func() {
    			// EvUserRegionBegin("region0", start)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jStdoutLogger.java

        }
    
        public boolean isTraceEnabled() {
            return false;
        }
    
        public void trace(String msg) {}
    
        public void trace(String format, Object arg) {}
    
        public void trace(String format, Object arg1, Object arg2) {}
    
        public void trace(String format, Object... arguments) {}
    
        public void trace(String msg, Throwable t) {}
    
        public boolean isTraceEnabled(Marker marker) {
            return false;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  8. src/internal/trace/gc_test.go

    		}
    		// Pass the trace through MutatorUtilizationV2 and check it.
    		check(t, trace.MutatorUtilizationV2(events, trace.UtilSTW|trace.UtilBackground|trace.UtilAssist))
    	})
    }
    
    func mmuSlow(util []trace.MutatorUtil, window time.Duration) (mmu float64) {
    	if max := time.Duration(util[len(util)-1].Time - util[0].Time); window > max {
    		window = max
    	}
    
    	mmu = 1.0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/StackTraceFilterTest.groovy

        def exception = new Exception()
        def trace = exception.stackTrace as List
    
        def "returns a new trace rather than mutating the original one"() {
            spec.isSatisfiedBy(_) >> true
    
            when:
            def filtered = filter.filter(trace)
    
            then:
            !filtered.is(trace)
            trace == old(trace)
        }
    
        def "filters stack trace according to the provided spec"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/runtime/tracestatus.go

    		print("runtime: goid=", goid, "\n")
    		throw("attempted to trace a bad status for a goroutine")
    	}
    
    	// Trace the status.
    	if stackID == 0 {
    		w = w.event(traceEvGoStatus, traceArg(goid), traceArg(uint64(mid)), traceArg(status))
    	} else {
    		w = w.event(traceEvGoStatusStack, traceArg(goid), traceArg(uint64(mid)), traceArg(status), traceArg(stackID))
    	}
    
    	// Trace any special ranges that are in-progress.
    	if markAssist {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top