Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RenderHTML (0.17 sec)

  1. pkg/ctrlz/topics/signals.go

    	tmpl := assets.ParseTemplate(context.Layout(), "templates/signals.html")
    
    	_ = context.HTMLRouter().StrictSlash(true).NewRoute().Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		fw.RenderHTML(w, tmpl, nil)
    	})
    
    	_ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("PUT", "POST").Path("/SIGUSR1").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		err := syscall.Kill(os.Getpid(), syscall.SIGUSR1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 17:12:24 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go

    	if err != nil {
    		http.Error(w, err.Error(), http.StatusBadRequest)
    		ui.options.UI.PrintErr(err)
    		return nil, nil
    	}
    	return rpt, catcher.errors
    }
    
    // renderHTML generates html using the named template based on the contents of data.
    func renderHTML(dst io.Writer, tmpl string, rpt *report.Report, errList, legend []string, data webArgs) error {
    	file := getFromLegend(legend, "File: ", "unknown")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/driver.go

    func printWebList(dst io.Writer, rpt *report.Report, obj plugin.ObjTool) error {
    	listing, err := report.MakeWebList(rpt, obj, -1)
    	if err != nil {
    		return err
    	}
    	legend := report.ProfileLabels(rpt)
    	return renderHTML(dst, "sourcelisting", rpt, nil, legend, webArgs{
    		Standalone: true,
    		Listing:    listing,
    	})
    }
    
    func applyCommandOverrides(cmd string, outputFormat int, cfg config) config {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top