Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HeapObjects (0.15 sec)

  1. test/fixedbugs/issue9110.go

    			time.Sleep(1 * time.Millisecond)
    		}
    	}
    
    	runtime.GC()
    
    	runtime.ReadMemStats(&stats2)
    
    	if int(stats2.HeapObjects)-int(stats1.HeapObjects) > 20 { // normally at most 1 or 2; was 300 with leak
    		print("BUG: object leak: ", stats.HeapObjects, " -> ", stats1.HeapObjects, " -> ", stats2.HeapObjects, "\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/cgonoescape.go

    	preHeapObjects := stats.HeapObjects
    
    	for i := 0; i < num; i++ {
    		withNoEscape()
    	}
    
    	runtime.ReadMemStats(&stats)
    	nowHeapObjects := stats.HeapObjects
    
    	if nowHeapObjects-preHeapObjects >= num {
    		fmt.Printf("too many heap objects allocated, pre: %v, now: %v\n", preHeapObjects, nowHeapObjects)
    	}
    
    	runtime.ReadMemStats(&stats)
    	preHeapObjects = stats.HeapObjects
    
    	for i := 0; i < num; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 16:43:23 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. test/gc2.go

    		if i%100 == 0 {
    			for j := 0; j < 4; j++ {
    				runtime.GC()
    				runtime.Gosched()
    				runtime.GC()
    				runtime.Gosched()
    			}
    		}
    	}
    
    	runtime.ReadMemStats(memstats)
    	obj := int64(memstats.HeapObjects - st.HeapObjects)
    	if obj > N/5 {
    		fmt.Println("too many objects left:", obj)
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 977 bytes
    - Viewed (0)
  4. pkg/ctrlz/topics/assets/templates/mem.html

        <tr>
            <td>HeapReleased</td>
            <td id="HeapReleased">{{.HeapReleased}} bytes</td>
            <td>Physical memory returned to the OS.</td>
        </tr>
    
        <tr>
            <td>HeapObjects</td>
            <td id="HeapObjects">{{.HeapObjects}} objects</td>
            <td>Number of allocated heap objects.</td>
        </tr>
    
        <tr>
            <td>StackInuse</td>
            <td id="StackInuse">{{.StackInuse}} bytes</td>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top