Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for myTracedRegion (0.2 sec)

  1. src/runtime/trace/annotation.go

    // Within each goroutine, regions must nest. That is, regions started
    // after this region must be ended before this region can be ended.
    // Recommended usage is
    //
    //	defer trace.StartRegion(ctx, "myTracedRegion").End()
    func StartRegion(ctx context.Context, regionType string) *Region {
    	if !IsEnabled() {
    		return noopRegion
    	}
    	id := fromContext(ctx).id
    	userRegion(id, regionStartCode, regionType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 00:47:09 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top