Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ProfilerType (0.06 sec)

  1. cmd/admin-handlers.go

    type StartProfilingResult struct {
    	NodeName string `json:"nodeName"`
    	Success  bool   `json:"success"`
    	Error    string `json:"error"`
    }
    
    // StartProfilingHandler - POST /minio/admin/v3/profiling/start?profilerType={profilerType}
    // ----------
    // Enable server profiling
    func (a adminAPIHandlers) StartProfilingHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	// Validate request signature.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  2. cmd/utils.go

    // Starts a profiler returns nil if profiler is not enabled, caller needs to handle this.
    func startProfiler(profilerType string) (minioProfiler, error) {
    	var prof profilerWrapper
    	prof.ext = "pprof"
    	// Enable profiler and set the name of the file that pkg/pprof
    	// library creates to store profiling data.
    	switch madmin.ProfilerType(profilerType) {
    	case madmin.ProfilerCPU:
    		dirPath, err := os.MkdirTemp("", "profile")
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. cmd/admin-router.go

    		// Profiling operations - deprecated API
    		adminRouter.Methods(http.MethodPost).Path(adminVersion+"/profiling/start").HandlerFunc(adminMiddleware(adminAPI.StartProfilingHandler, traceAllFlag, noObjLayerFlag)).
    			Queries("profilerType", "{profilerType:.*}")
    		adminRouter.Methods(http.MethodGet).Path(adminVersion + "/profiling/download").HandlerFunc(adminMiddleware(adminAPI.DownloadProfilingHandler, traceHdrsS3HFlag, noObjLayerFlag))
    		// Profiling operations
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top