Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 389 for Resets (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/routes/metrics.go

    	register()
    	c.Handle("/metrics", legacyregistry.Handler())
    }
    
    // MetricsWithReset install the prometheus metrics handler extended with support for the DELETE method
    // which resets the metrics.
    type MetricsWithReset struct{}
    
    // Install adds the MetricsWithReset handler
    func (m MetricsWithReset) Install(c *mux.PathRecorderMux) {
    	register()
    	c.Handle("/metrics", legacyregistry.HandlerWithReset())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 02:06:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/workcmd/vendor.go

    	"cmd/go/internal/modload"
    	"context"
    )
    
    var cmdVendor = &base.Command{
    	UsageLine: "go work vendor [-e] [-v] [-o outdir]",
    	Short:     "make vendored copy of dependencies",
    	Long: `
    Vendor resets the workspace's vendor directory to include all packages
    needed to build and test all the workspace's packages.
    It does not include test code for vendored packages.
    
    The -v flag causes vendor to print the names of vendored
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 18:09:22 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/splice.go

    func (sb *spliceBuffer) Write(p []byte) (n int, err error) {
    	if sb.buf == nil {
    		sb.buf = &bytes.Buffer{}
    	}
    	return sb.buf.Write(p)
    }
    
    // Reset resets the buffer to be empty.
    func (sb *spliceBuffer) Reset() {
    	if sb.buf != nil {
    		sb.buf.Reset()
    	}
    	sb.raw = nil
    }
    
    // Bytes returns the data held by the buffer.
    func (sb *spliceBuffer) Bytes() []byte {
    	if sb.buf != nil && len(sb.buf.Bytes()) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics.go

    func (m *validationMetrics) ObserveRatchetingTime(d time.Duration) {
    	m.RatchetingTime.Observe(d.Seconds())
    }
    
    // Reset resets the metrics. This is meant to be used for testing. Panics
    // if the metrics cannot be re-registered. Returns all the reset metrics
    func (m *validationMetrics) Reset() []metrics.Registerable {
    	m.RatchetingTime = metrics.NewHistogram(m.RatchetingTime.HistogramOpts)
    	return []metrics.Registerable{m.RatchetingTime}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:57:34 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/artifacts/DirectDependencyMetadata.java

         * resolution as if they were defined by the endorsing module itself.
         *
         * @since 6.0
         */
        void endorseStrictVersions();
    
        /**
         * Resets the {@link #isEndorsingStrictVersions()} state of this dependency.
         *
         * @since 6.0
         */
        void doNotEndorseStrictVersions();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 09 17:53:23 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/trace2map_test.go

    package runtime_test
    
    import (
    	. "runtime"
    	"strconv"
    	"sync"
    	"testing"
    )
    
    func TestTraceMap(t *testing.T) {
    	var m TraceMap
    
    	// Try all these operations multiple times between resets, to make sure
    	// we're resetting properly.
    	for range 3 {
    		var d = [...]string{
    			"a",
    			"b",
    			"aa",
    			"ab",
    			"ba",
    			"bb",
    		}
    		for i, s := range d {
    			id, inserted := m.PutString(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 18:52:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/execution/taskgraph/TaskExecutionGraphInternal.java

         * Returns all the work items in this graph scheduled for execution plus all
         * dependencies from other builds.
         */
        void visitScheduledNodes(BiConsumer<List<Node>, Set<Node>> visitor);
    
        /**
         * Resets the lifecycle for this graph.
         */
        void resetState();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 19:05:29 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/mark_for_compilation_pass.h

      friend class MarkForCompilationPassTestHelper;
    };
    
    absl::flat_hash_map<string, std::vector<string>>* GetAllowlistTable();
    
    namespace testing {
    // DO NOT USE IN PRODUCTION.
    //
    // Resets some internal state to let us write reliable unit tests.
    void ResetClusterSequenceNumber();
    
    // Return a list of operation that we choose not to put into the allowlist.
    absl::flat_hash_set<string> GetKnownXLAAllowlistOp();
    }  // namespace testing
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 10 22:46:01 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/FileBackedOutputStream.java

      }
    
      /**
       * Creates a new instance that uses the given file threshold, and optionally resets the data when
       * the {@link ByteSource} returned by {@link #asByteSource} is finalized.
       *
       * @param fileThreshold the number of bytes before the stream should switch to buffering to a file
       * @param resetOnFinalize if true, the {@link #reset} method will be called when the {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. src/hash/hash.go

    	// It never returns an error.
    	io.Writer
    
    	// Sum appends the current hash to b and returns the resulting slice.
    	// It does not change the underlying hash state.
    	Sum(b []byte) []byte
    
    	// Reset resets the Hash to its initial state.
    	Reset()
    
    	// Size returns the number of bytes Sum will return.
    	Size() int
    
    	// BlockSize returns the hash's underlying block size.
    	// The Write method must be able to accept any amount
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top