Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 350 for counter1 (0.17 sec)

  1. src/runtime/pinner.go

    	if !exists {
    		throw("runtime.Pinner: decreased non-existing pin counter")
    	}
    	counter := (*specialPinCounter)(unsafe.Pointer(*ref))
    	counter.counter--
    	if counter.counter == 0 {
    		*ref = counter.special.next
    		if span.specials == nil {
    			spanHasNoSpecials(span)
    		}
    		lock(&mheap_.speciallock)
    		mheap_.specialPinCounterAlloc.free(unsafe.Pointer(counter))
    		unlock(&mheap_.speciallock)
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/crypto/rand/rand_plan9.go

    	blockCipher, err := aes.NewCipher(r.key[:])
    	if err != nil {
    		r.mu.Unlock()
    		return 0, err
    	}
    	var (
    		counter uint64
    		block   [aes.BlockSize]byte
    	)
    	inc := func() {
    		counter++
    		if counter == 0 {
    			panic("crypto/rand counter wrapped")
    		}
    		byteorder.LePutUint64(block[:], counter)
    	}
    	blockCipher.Encrypt(r.key[:aes.BlockSize], block[:])
    	inc()
    	blockCipher.Encrypt(r.key[aes.BlockSize:], block[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/pod_cache_test.go

    	if !reflect.DeepEqual(netns1, netns2) {
    		t.Fatalf("Expected the same Netns for the same uid, got %v and %v", netns1, netns2)
    	}
    
    	if counter.Load() != 2 {
    		t.Fatalf("Expected openNetns to be called twice, got %d", counter.Load())
    	}
    }
    
    func TestUpsertPodCacheWithNewInode(t *testing.T) {
    	counter.Store(0)
    
    	p := newPodNetnsCache(openNsTestOverrideWithInodes(1, 2))
    
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/internal/coverage/cfile/testdata/harness.go

    	} else {
    		got := fmt.Sprintf("%v", err)
    		checkWant("meta data", got)
    	}
    
    	// Now try to emit counter data file to a bad dir.
    	if err := coverage.WriteCountersDir(mangled); err == nil {
    		log.Fatal("expected error emitting counter data to bad dir")
    	} else {
    		got := fmt.Sprintf("%v", err)
    		checkWant("counter data", got)
    	}
    }
    
    func emitToUnwritableDir() {
    	log.SetPrefix("emitToUnwritableDir: ")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/status/server_test.go

    my_metric{} 0
    # TYPE my_other_metric counter
    my_other_metric{} 0
    # TYPE my_metric counter
    my_metric{} 0
    `,
    			expectParseError: true,
    		},
    		{
    			name: "conflict metric labeled",
    			envoy: `# TYPE my_metric counter
    my_metric{app="foo"} 0
    `,
    			app: `# TYPE my_metric counter
    my_metric{app="bar"} 0
    `,
    			output: `# TYPE my_metric counter
    my_metric{app="foo"} 0
    # TYPE my_metric counter
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

        legalize_chlo_ = legalize_chlo;
      }
    
      void runOnOperation() override;
    };
    
    static void IncrementCounterFor(tensorflow::monitoring::Counter<1>* counter,
                                    Operation* op) {
      counter->GetCell(op->getName().getStringRef().str())->IncrementBy(1);
    }
    
    bool HasBounds(RankedTensorType type) {
      auto encoding = mlir::dyn_cast_or_null<mlir::mhlo::TypeExtensionsAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/resources/org/gradle/reporting/report.js

        $("table").each(function () {
            var counter = 0;
            var rows = $(this).find("tr");
            if (rows.length != 1) {
                rows.each(function () {
                    var e = $(this);
                    if (e.children("th").length > 0) {
                        counter = 0;
                        return;
                    }
                    if (counter % 2 == 0) {
                        e.addClass("table-row-even");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. pkg/proxy/metrics/metrics.go

    	if n.client != nil {
    		counter, err := n.client.Get(n.counter)
    		if err != nil {
    			klog.ErrorS(err, "failed to collect nfacct counter", "counter", n.counter)
    		} else {
    			metric, err := metrics.NewConstMetric(n.description, metrics.CounterValue, float64(counter.Packets))
    			if err != nil {
    				klog.ErrorS(err, "failed to create constant metric")
    			} else {
    				ch <- metric
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental.cc

      if (!result->counter->GetStatus().ok()) {
        delete result;
        return nullptr;
      }
      return result;
    }
    
    void TFE_MonitoringDeleteCounter1(TFE_MonitoringCounter1* counter) {
      delete counter;
    }
    
    TFE_MonitoringCounterCell* TFE_MonitoringGetCellCounter1(
        TFE_MonitoringCounter1* counter, const char* label1) {
      return static_cast<TFE_MonitoringCounterCell*>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  10. tests/non_std_test.go

    	DB.First(&animal, animal.Counter)
    	if animal.Name != "galeone" {
    		t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name)
    	}
    
    	// When changing a field with a default value, the change must occur
    	animal.Name = "amazing horse"
    	DB.Save(&animal)
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "amazing horse" {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top