Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for my_profile (6.41 sec)

  1. src/runtime/mprof.go

    			return r.Stack0[0:i]
    		}
    	}
    	return r.Stack0[0:]
    }
    
    // MemProfile returns a profile of memory allocated and freed per allocation
    // site.
    //
    // MemProfile returns n, the number of records in the current memory profile.
    // If len(p) >= n, MemProfile copies the profile into p and returns n, true.
    // If len(p) < n, MemProfile does not change p and returns n, false.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  2. src/testing/testing.go

    		trace.Stop() // flushes trace to disk
    	}
    	if *memProfile != "" {
    		f, err := os.Create(toOutputDir(*memProfile))
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "testing: %s\n", err)
    			os.Exit(2)
    		}
    		runtime.GC() // materialize all statistics
    		if err = m.deps.WriteProfileTo("allocs", f, 0); err != nil {
    			fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *memProfile, err)
    			os.Exit(2)
    		}
    		f.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    				sb2.AddUint8(0)
    			}
    		}
    
    		// Set runtime.disableMemoryProfiling bool if
    		// runtime.MemProfile is not retained in the binary after
    		// deadcode (and we're not dynamically linking).
    		memProfile := ctxt.loader.Lookup("runtime.MemProfile", abiInternalVer)
    		if memProfile != 0 && !ctxt.loader.AttrReachable(memProfile) && !ctxt.DynlinkingGo() {
    			memProfSym := ctxt.loader.LookupOrCreateSym("runtime.disableMemoryProfiling", 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/test.go

    	    Sets -cover.
    
    	-cpuprofile cpu.out
    	    Write a CPU profile to the specified file before exiting.
    	    Writes test binary as -c would.
    
    	-memprofile mem.out
    	    Write an allocation profile to the file after all tests have passed.
    	    Writes test binary as -c would.
    
    	-memprofilerate n
    	    Enable more precise (and expensive) memory allocation profiles by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top