Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getProfileData (0.1 sec)

  1. cmd/utils.go

    func (p profilerWrapper) Extension() string {
    	return p.ext
    }
    
    // Returns current profile data, returns error if there is no active
    // profiling in progress. Stops an active profile.
    func getProfileData() (map[string][]byte, error) {
    	globalProfilerMu.Lock()
    	defer globalProfilerMu.Unlock()
    
    	if len(globalProfiler) == 0 {
    		return nil, errors.New("profiler not enabled")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  2. cmd/notification.go

    		return false
    	}
    
    	// Local host
    	thisAddr, err := xnet.ParseHost(globalLocalNodeName)
    	if err != nil {
    		bugLogIf(ctx, err)
    		return profilingDataFound
    	}
    
    	data, err := getProfileData()
    	if err != nil {
    		reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", thisAddr.String())
    		ctx := logger.SetReqInfo(ctx, reqInfo)
    		bugLogIf(ctx, err)
    		return profilingDataFound
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("Invalid request"))
    		return
    	}
    
    	ctx := newContext(r, w, "DownloadProfiling")
    	profileData, err := getProfileData()
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	peersLogIf(ctx, gob.NewEncoder(w).Encode(profileData))
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
Back to top