Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 663 for counter1 (0.21 sec)

  1. src/debug/gosym/pclntab.go

    // PCToLine returns the line number for the given program counter.
    //
    // Deprecated: Use Table's PCToLine method instead.
    func (t *LineTable) PCToLine(pc uint64) int {
    	if t.isGo12() {
    		return t.go12PCToLine(pc)
    	}
    	_, _, line := t.parse(pc, -1)
    	return line
    }
    
    // LineToPC returns the program counter for the given line number,
    // considering only program counters before maxpc.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. src/cmd/go/main.go

    func main() {
    	log.SetFlags(0)
    	telemetry.Start() // Open the telemetry counter file so counters can be written to it.
    	handleChdirFlag()
    	toolchain.Select()
    
    	telemetry.StartWithUpload() // Run the upload process. Opening the counter file is idempotent.
    	flag.Usage = base.Usage
    	flag.Parse()
    	telemetry.Inc("go/invocations")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/runtime/traceback_system_test.go

    		t.Errorf("got:\n%swant:\n%s", got, want)
    	}
    }
    
    // parseStackPCs parses the parent process's program counters for the
    // first running goroutine out of a GOTRACEBACK=system traceback,
    // adjusting them so that they are valid for the child process's text
    // segment.
    //
    // This function returns only program counter values, ensuring that
    // there is no possibility of strings from the crash report (which may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. pkg/apis/batch/types.go

    	//     counter.
    	//
    	// Old jobs might not be tracked using this field, in which case the field
    	// remains null.
    	// The structure is empty for finished jobs.
    	// +optional
    	UncountedTerminatedPods *UncountedTerminatedPods
    }
    
    // UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't
    // been accounted in Job status counters.
    type UncountedTerminatedPods struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        queue.addListener(listener, directExecutor());
    
        Multiset<Object> counters = ConcurrentHashMultiset.create();
        queue.enqueue(incrementingEvent(counters, listener, 1));
        queue.enqueue(incrementingEvent(counters, listener, 2));
        queue.enqueue(incrementingEvent(counters, listener, 3));
        queue.enqueue(incrementingEvent(counters, listener, 4));
        assertEquals(0, counters.size());
        queue.dispatch();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

        queue.addListener(listener, directExecutor());
    
        Multiset<Object> counters = ConcurrentHashMultiset.create();
        queue.enqueue(incrementingEvent(counters, listener, 1));
        queue.enqueue(incrementingEvent(counters, listener, 2));
        queue.enqueue(incrementingEvent(counters, listener, 3));
        queue.enqueue(incrementingEvent(counters, listener, 4));
        assertEquals(0, counters.size());
        queue.dispatch();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  7. tests/test_dependency_cache.py

    app = FastAPI()
    
    counter_holder = {"counter": 0}
    
    
    async def dep_counter():
        counter_holder["counter"] += 1
        return counter_holder["counter"]
    
    
    async def super_dep(count: int = Depends(dep_counter)):
        return count
    
    
    @app.get("/counter/")
    async def get_counter(count: int = Depends(dep_counter)):
        return {"counter": count}
    
    
    @app.get("/sub-counter/")
    async def get_sub_counter(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Aug 23 13:30:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertEquals(-1, counter.read(new byte[30]));
        assertEquals(20, counter.getCount());
      }
    
      @SuppressWarnings("CheckReturnValue") // calling read() to skip a byte
      public void testMark() throws Exception {
        assertTrue(counter.markSupported());
        assertEquals(10, counter.read(new byte[10]));
        assertEquals(10, counter.getCount());
        counter.mark(5);
        counter.read();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/internal/telemetry/telemetry.go

    	})
    }
    
    // Inc increments the counter with the given name.
    func Inc(name string) {
    	counter.Inc(name)
    }
    
    // NewCounter returns a counter with the given name.
    func NewCounter(name string) *counter.Counter {
    	return counter.New(name)
    }
    
    // NewStackCounter returns a new stack counter with the given name and depth.
    func NewStackCounter(name string, depth int) *counter.StackCounter {
    	return counter.NewStack(name, depth)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    	goGetAndExpect(t, clock, counter, wr, gots, aval)
    }
    func TestCountingWriteOnceCancel(t *testing.T) {
    	oldTime := time.Now()
    	cval := &oldTime
    	clock, counter := testeventclock.NewFake(oldTime, 0, nil)
    	ctx, cancel := context.WithCancel(context.Background())
    	var lock sync.Mutex
    	wr := NewCountingWriteOnce(counter, &lock, nil, ctx.Done(), cval)
    	gots := make(chan interface{}, 1)
    	goGetExpectNotYet(t, clock, counter, wr, gots, "cancel")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
Back to top