Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for bySize (0.13 sec)

  1. src/runtime/mstats.go

    	EnableGC bool
    
    	// DebugGC is currently unused.
    	DebugGC bool
    
    	// BySize reports per-size class allocation statistics.
    	//
    	// BySize[N] gives statistics for allocations of size S where
    	// BySize[N-1].Size < S ≤ BySize[N].Size.
    	//
    	// This does not report allocations larger than BySize[60].Size.
    	BySize [61]struct {
    		// Size is the maximum byte size of an object in this
    		// size class.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/filter.go

    		v, ok := tagsMap[k]
    		if !ok || v != cv {
    			mismatch = true
    			break
    		}
    	}
    	return !mismatch
    }
    
    // BySize returns true if sz satisfies one of ObjectSizeGreaterThan,
    // ObjectSizeLessThan predicates or a combination of them via And.
    func (f Filter) BySize(sz int64) bool {
    	if f.ObjectSizeGreaterThan > 0 &&
    		sz <= f.ObjectSizeGreaterThan {
    		return false
    	}
    	if f.ObjectSizeLessThan > 0 &&
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/and.go

    			return true
    		}
    		x[t.Key] = struct{}{}
    	}
    
    	return false
    }
    
    // BySize returns true when sz satisfies a
    // ObjectSizeLessThan/ObjectSizeGreaterthan or a logical AND of these predicates
    // Note: And combines size and other predicates like Tags, Prefix, etc. This
    // method applies exclusively to size predicates only.
    func (a And) BySize(sz int64) bool {
    	if a.ObjectSizeGreaterThan > 0 &&
    		sz <= a.ObjectSizeGreaterThan {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    		}
    		slow.Frees += m.tinyAllocCount + m.largeFreeCount
    		slow.Mallocs += slow.Frees
    
    		slow.TotalAlloc = slow.Alloc + m.largeFree + smallFree
    
    		for i := range slow.BySize {
    			slow.BySize[i].Mallocs = bySize[i].Mallocs
    			slow.BySize[i].Frees = bySize[i].Frees
    		}
    
    		for i := mheap_.pages.start; i < mheap_.pages.end; i++ {
    			chunk := mheap_.pages.tryChunkOf(i)
    			if chunk == nil {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/runtime/metrics_test.go

    		case "/gc/heap/allocs-by-size:bytes":
    			hist := samples[i].Value.Float64Histogram()
    			// Skip size class 0 in BySize, because it's always empty and not represented
    			// in the histogram.
    			for i, sc := range mstats.BySize[1:] {
    				if b, s := hist.Buckets[i+1], float64(sc.Size+1); b != s {
    					t.Errorf("bucket does not match size class: got %f, want %f", b, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/filter_test.go

    		{
    			filter:  fiLtAndGt,
    			objSize: 100*humanize.MiByte + 1,
    			want:    false,
    		},
    	}
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			if got := test.filter.BySize(test.objSize); got != test.want {
    				t.Fatalf("Expected %v but got %v", test.want, got)
    			}
    		})
    	}
    }
    
    func TestTestTags(t *testing.T) {
    	noTags := Filter{
    		set: true,
    		And: And{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

      return profile;
    }
    
    Rematerializer::MemSpec Rematerializer::GetPeakMemory(
        const RematSpec& remat) const {
      MemSpec peak;
      MapMem([&](const MemSpec& m) { peak = std::max(m, peak, BySize); }, remat);
      return peak;
    }
    
    int Rematerializer::FindBestRematPoint(const int begin, const int end,
                                           const int peak_loc) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

                       // inputs of subsequent operations.
        explicit MemSpec(int op_index = 0, SizeT size = 0)
            : op_index(op_index), size(size) {}
      };
    
      static bool BySize(const MemSpec& a, const MemSpec& b) {
        return std::tie(a.size, a.op_index) < std::tie(b.size, b.op_index);
      }
    
      static bool ByOpIndex(const MemSpec& a, const MemSpec& b) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
  9. src/runtime/malloc_test.go

    		"PauseTotalNs": {le(1e11)}, "PauseNs": nil, "PauseEnd": nil,
    		"NumGC": {nz, le(1e9)}, "NumForcedGC": {nz, le(1e9)},
    		"GCCPUFraction": {le(0.99)}, "EnableGC": {eq(true)}, "DebugGC": {eq(false)},
    		"BySize": nil,
    	}
    
    	rst := reflect.ValueOf(st).Elem()
    	for i := 0; i < rst.Type().NumField(); i++ {
    		name, val := rst.Type().Field(i).Name, rst.Field(i).Interface()
    		checks, ok := fields[name]
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle.go

    			continue
    		}
    		if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
    			continue
    		}
    		if !rule.Filter.TestTags(obj.UserTags) {
    			continue
    		}
    		if !obj.DeleteMarker && !rule.Filter.BySize(obj.Size) {
    			continue
    		}
    		rules = append(rules, rule)
    	}
    	return rules
    }
    
    // ObjectOpts provides information to deduce the lifecycle actions
    // which can be triggered on the resultant object.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top