Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for allocObjects (0.15 sec)

  1. src/internal/profilerecord/profilerecord.go

    	Stack []uintptr
    }
    
    type MemProfileRecord struct {
    	AllocBytes, FreeBytes     int64
    	AllocObjects, FreeObjects int64
    	Stack                     []uintptr
    }
    
    func (r *MemProfileRecord) InUseBytes() int64   { return r.AllocBytes - r.FreeBytes }
    func (r *MemProfileRecord) InUseObjects() int64 { return r.AllocObjects - r.FreeObjects }
    
    type BlockProfileRecord struct {
    	Count  int64
    	Cycles int64
    	Stack  []uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 815 bytes
    - Viewed (0)
  2. src/runtime/pprof/protomem.go

    			}
    			hideRuntime = false // try again, and show all frames next time.
    		}
    
    		values[0], values[1] = scaleHeapSample(r.AllocObjects, r.AllocBytes, rate)
    		values[2], values[3] = scaleHeapSample(r.InUseObjects(), r.InUseBytes(), rate)
    		var blockSize int64
    		if r.AllocObjects > 0 {
    			blockSize = r.AllocBytes / r.AllocObjects
    		}
    		b.pbSample(values, locs, func() {
    			if blockSize != 0 {
    				b.pbLabel(tagSample_Label, "bytes", "", blockSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. test/heapsampling.go

    	// allocations are from the same leaf, so pick the first one.
    	var firstLine int
    	for ln := range allocObjects(records, frames[0]) {
    		if firstLine == 0 || firstLine > ln {
    			firstLine = ln
    		}
    	}
    	for _, frame := range frames {
    		var objectCount int64
    		a := allocObjects(records, frame)
    		for s := range size {
    			// Allocations of size size[s] should be on line firstLine + s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  4. src/runtime/pprof/protomem_test.go

    	rate := int64(512 * 1024)
    	rec := []profilerecord.MemProfileRecord{
    		{AllocBytes: 4096, FreeBytes: 1024, AllocObjects: 4, FreeObjects: 1, Stack: []uintptr{a1, a2}},
    		{AllocBytes: 512 * 1024, FreeBytes: 0, AllocObjects: 1, FreeObjects: 0, Stack: []uintptr{a2 + 1, a2 + 2}},
    		{AllocBytes: 512 * 1024, FreeBytes: 512 * 1024, AllocObjects: 1, FreeObjects: 1, Stack: []uintptr{a1 + 1, a1 + 2, a2 + 3}},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. test/finprofiled.go

    			prof = make([]runtime.MemProfileRecord, n+10)
    		}
    	}
    	// See how much memory in tiny objects is profiled.
    	var totalBytes int64
    	for _, p := range prof {
    		bytes := p.AllocBytes - p.FreeBytes
    		nobj := p.AllocObjects - p.FreeObjects
    		if nobj == 0 {
    			// There may be a record that has had all of its objects
    			// freed. That's fine. Avoid a divide-by-zero and skip.
    			continue
    		}
    		size := bytes / nobj
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. src/runtime/pprof/pprof.go

    	b := bufio.NewWriter(w)
    	tw := tabwriter.NewWriter(b, 1, 8, 1, '\t', 0)
    	w = tw
    
    	var total runtime.MemProfileRecord
    	for i := range p {
    		r := &p[i]
    		total.AllocBytes += r.AllocBytes
    		total.AllocObjects += r.AllocObjects
    		total.FreeBytes += r.FreeBytes
    		total.FreeObjects += r.FreeObjects
    	}
    
    	// Technically the rate is MemProfileRate not 2*MemProfileRate,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/runtime/mprof.go

    func (r *MemProfileRecord) InUseBytes() int64 { return r.AllocBytes - r.FreeBytes }
    
    // InUseObjects returns the number of objects in use (AllocObjects - FreeObjects).
    func (r *MemProfileRecord) InUseObjects() int64 {
    	return r.AllocObjects - r.FreeObjects
    }
    
    // Stack returns the stack trace associated with the record,
    // a prefix of r.Stack0.
    func (r *MemProfileRecord) Stack() []uintptr {
    	for i, v := range r.Stack0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go

    	si = sampleIndex(flagInUseObjects, si, "inuse_objects", "-inuse_objects", o.UI)
    	si = sampleIndex(flagAllocSpace, si, "alloc_space", "-alloc_space", o.UI)
    	si = sampleIndex(flagAllocObjects, si, "alloc_objects", "-alloc_objects", o.UI)
    	cfg.SampleIndex = si
    
    	if *flagMeanDelay {
    		cfg.Mean = true
    	}
    
    	source := &source{
    		Sources:            args,
    		ExecName:           execName,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  9. operator/pkg/helmreconciler/apply.go

    	cname := string(manifest.Name)
    	crHash, err := h.getCRHash(cname)
    	if err != nil {
    		return result, err
    	}
    
    	scope.Infof("Processing resources from manifest: %s for CR %s", cname, crHash)
    	allObjects, err := object.ParseK8sObjectsFromYAMLManifest(manifest.Content)
    	if err != nil {
    		return result, err
    	}
    
    	objectCache := cache.GetCache(crHash)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. hack/grab-profiles.sh

          mem_pprof_flags="alloc_space ${mem_pprof_flags}"
          ;;
        --alloc-objects)
          shift
          requested_profiles="mem ${requested_profiles}"
          mem_pprof_flags="alloc_objects ${mem_pprof_flags}"
          ;;
        --cpu)
          shift
          requested_profiles="cpu ${requested_profiles}"
          ;;
        --help)
          shift
          echo "Recognized options:
            -o/--output,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 17 06:47:05 UTC 2021
    - 8.4K bytes
    - Viewed (0)
Back to top