Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for massageSVG (0.13 sec)

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

    	graphID  = regexp.MustCompile(`<g id="graph\d"`)
    	svgClose = regexp.MustCompile(`</svg>`)
    )
    
    // massageSVG enhances the SVG output from DOT to provide better
    // panning inside a web browser. It uses the svgpan library, which is
    // embedded into the svgpan.JSSource variable.
    func massageSVG(svg string) string {
    	// Work around for dot bug which misses quoting some ampersands,
    	// resulting on unparsable SVG.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/commands.go

    	return func(input io.Reader, output io.Writer, ui plugin.UI) error {
    		baseSVG := new(bytes.Buffer)
    		if err := generateSVG(input, baseSVG, ui); err != nil {
    			return err
    		}
    		_, err := output.Write([]byte(massageSVG(baseSVG.String())))
    		return err
    	}
    }
    
    func invokeVisualizer(suffix string, visualizers []string) PostProcessor {
    	return func(input io.Reader, output io.Writer, ui plugin.UI) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top