Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 280 for pprof_ (0.13 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    	"fmt"
    	"io"
    	"net/http"
    	"net/url"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/google/pprof/internal/measurement"
    	"github.com/google/pprof/internal/plugin"
    	"github.com/google/pprof/profile"
    )
    
    // fetchProfiles fetches and symbolizes the profiles specified by s.
    // It will merge all the profiles it is able to retrieve, even if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/gprof.go

    	runtime.SetCgoTraceback(0, unsafe.Pointer(C.gprofCgoTraceback), unsafe.Pointer(C.gprofCgoContext), nil)
    
    	go C.CallGoSleep()
    	go C.CallGoSleep()
    	go C.CallGoSleep()
    	time.Sleep(1 * time.Second)
    
    	prof := pprof.Lookup("goroutine")
    	prof.WriteTo(io.Discard, 1)
    	fmt.Println("OK")
    }
    
    //export GoSleep
    func GoSleep() {
    	time.Sleep(time.Hour)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 11 15:34:02 UTC 2021
    - 868 bytes
    - Viewed (0)
  3. src/runtime/pprof/pprof.go

    //
    //	go tool pprof cpu.prof
    //
    // There are many commands available from the pprof command line.
    // Commonly used commands include "top", which prints a summary of the
    // top program hot-spots, and "web", which opens an interactive graph
    // of hot-spots and their call graphs. Use "help" for information on
    // all pprof commands.
    //
    // For more information about pprof, see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/pprof.go

    	f, err := os.CreateTemp("", "prof")
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(2)
    	}
    
    	if err := pprof.StartCPUProfile(f); err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(2)
    	}
    
    	t0 := time.Now()
    	for time.Since(t0) < time.Second {
    		C.cpuHog()
    	}
    
    	pprof.StopCPUProfile()
    
    	name := f.Name()
    	if err := f.Close(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 12 19:45:58 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  5. src/internal/trace/traceviewer/pprof.go

    // Serving of pprof-like profiles.
    
    package traceviewer
    
    import (
    	"bufio"
    	"fmt"
    	"internal/profile"
    	"internal/trace"
    	"net/http"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"time"
    )
    
    type ProfileFunc func(r *http.Request) ([]ProfileRecord, error)
    
    // SVGProfileHandlerFunc serves pprof-like profile generated by prof as svg.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:28:02 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/cmd/trace/pprof.go

    // computePprofIO returns a computePprofFunc that generates IO pprof-like profile (time spent in
    // IO wait, currently only network blocking event).
    func computePprofIO() computePprofFunc {
    	return makeComputePprofFunc(trace.GoWaiting, func(reason string) bool {
    		return reason == "network"
    	})
    }
    
    // computePprofBlock returns a computePprofFunc that generates blocking pprof-like profile
    // (time spent blocked on synchronization primitives).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/aprof.go

    			if i%1000 == 0 {
    				if time.Since(start) > time.Second {
    					break
    				}
    			}
    			C.CallGoNop()
    		}
    		c <- true
    	}()
    
    	var buf bytes.Buffer
    	pprof.StartCPUProfile(&buf)
    	c <- true
    	<-c
    	pprof.StopCPUProfile()
    
    	fmt.Println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 19 16:23:54 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  8. src/net/http/pprof/pprof.go

    //
    // # Usage examples
    //
    // Use the pprof tool to look at the heap profile:
    //
    //	go tool pprof http://localhost:6060/debug/pprof/heap
    //
    // Or to look at a 30-second CPU profile:
    //
    //	go tool pprof http://localhost:6060/debug/pprof/profile?seconds=30
    //
    // Or to look at the goroutine blocking profile, after calling
    // [runtime.SetBlockProfileRate] in your program:
    //
    //	go tool pprof http://localhost:6060/debug/pprof/block
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:34:05 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/cmd/internal/pgo/pprof.go

    // Package pgo contains the compiler-agnostic portions of PGO profile handling.
    // Notably, parsing pprof profiles and serializing/deserializing from a custom
    // intermediate representation.
    package pgo
    
    import (
    	"errors"
    	"fmt"
    	"internal/profile"
    	"io"
    	"sort"
    )
    
    // FromPProf parses Profile from a pprof profile.
    func FromPProf(r io.Reader) (*Profile, error) {
    	p, err := profile.Parse(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. src/cmd/pprof/pprof.go

    	"cmd/internal/telemetry"
    
    	"github.com/google/pprof/driver"
    	"github.com/google/pprof/profile"
    )
    
    func main() {
    	telemetry.Start()
    	telemetry.Inc("pprof/invocations")
    	options := &driver.Options{
    		Fetch: new(fetcher),
    		Obj:   new(objTool),
    		UI:    newUI(),
    	}
    	err := driver.PProf(options)
    	telemetry.CountFlags("pprof/flag:", *flag.CommandLine) // pprof will use the flag package as its default
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top