Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 185 for _ecounters (0.21 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/counter/counter.go

    	return counter.NewStack(name, depth)
    }
    
    // Open prepares telemetry counters for recording to the file system.
    //
    // If the telemetry mode is "off", Open is a no-op. Otherwise, it opens the
    // counter file on disk and starts to mmap telemetry counters to the file.
    // Open also persists any counters already created in the current process.
    //
    // Programs using telemetry should call Open exactly once.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 18:02:34 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    				// stack
    				prog.Stacks[k] += int64(v)
    			} else {
    				// counter
    				prog.Counters[k] += int64(v)
    			}
    			succeeded = true
    			fok = true
    		}
    		if !fok {
    			u.logger.Printf("no counters found in %s", f)
    		}
    	}
    	if !succeeded {
    		return "", fmt.Errorf("none of the %d count files for %s contained counters", len(countFiles), expiryDate)
    	}
    	// 1. generate the local report
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/internal/coverage/encodecounter/encode.go

    			return err
    		} else if sz != towr {
    			return fmt.Errorf("writing counters: short write")
    		}
    		return nil
    	}
    
    	// Write out entries for each live function.
    	emitter := func(pkid uint32, funcid uint32, counters []uint32) error {
    		cfw.csh.FcnEntries++
    		if err := wrval(uint32(len(counters))); err != nil {
    			return err
    		}
    
    		if err := wrval(pkid); err != nil {
    			return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to parse: %v", err)
    	}
    	return pf, nil
    }
    
    // ReadFile reads the counters and stack counters from the given file.
    // This is the implementation of x/telemetry/counter/countertest.Read
    func ReadFile(name string) (counters, stackCounters map[string]uint64, _ error) {
    	// TODO: Document the format of the stackCounters names.
    
    	data, err := os.ReadFile(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    			}
    			wroteNext = true
    		} else {
    			c.next.Store(next)
    		}
    		if f.counters.CompareAndSwap(head, c) {
    			debugPrintf("registered %s %p\n", c.Name(), f.counters.Load())
    			return
    		}
    		debugPrintf("register %s cas2 failed %p %p\n", c.Name(), f.counters.Load(), head)
    	}
    }
    
    // invalidateCounters marks as invalid all the pointers
    // held by f's counters and then refreshes them.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ModelBuildingListener.java

     * under the License.
     */
    package org.apache.maven.api.services.model;
    
    /**
     * Defines events that the model builder fires during construction of the effective model. When a listener encounters
     * errors while processing the event, it can report these problems via {@link ModelBuildingEvent#problems()}.
     */
    public interface ModelBuildingListener {
    
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. src/internal/coverage/cfile/apis.go

    	for _, c := range cl {
    		sd := unsafe.Slice((*atomic.Uint32)(unsafe.Pointer(c.Counters)), int(c.Len))
    		for i := 0; i < len(sd); i++ {
    			// Skip ahead until the next non-zero value.
    			sdi := sd[i].Load()
    			if sdi == 0 {
    				continue
    			}
    			// We found a function that was executed; clear its counters.
    			nCtrs := sdi
    			for j := 0; j < int(nCtrs); j++ {
    				sd[i+coverage.FirstCtrOffset+j].Store(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/runtime/covercounter.go

    	u32sz := unsafe.Sizeof(uint32(0))
    	for datap := &firstmoduledata; datap != nil; datap = datap.next {
    		if datap.covctrs == datap.ecovctrs {
    			continue
    		}
    		res = append(res, rtcov.CovCounterBlob{
    			Counters: (*uint32)(unsafe.Pointer(datap.covctrs)),
    			Len:      uint64((datap.ecovctrs - datap.covctrs) / u32sz),
    		})
    	}
    	return res
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 740 bytes
    - Viewed (0)
  9. src/internal/coverage/rtcov/rtcov.go

    }
    
    // CovCounterBlob is a container for encapsulating a counter section
    // (BSS variable) for an instrumented Go module. Here "counters"
    // points to the counter payload and "len" is the number of uint32
    // entries in the section.
    type CovCounterBlob struct {
    	Counters *uint32
    	Len      uint64
    }
    
    // Meta is the top-level container for bits of state related to
    // code coverage meta-data in the runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. pkg/proxy/util/nfacct/nfacct_linux.go

    	if err != nil {
    		return nil, handleError(err)
    	}
    
    	counters := make([]*Counter, 0)
    	for _, msg := range msgs {
    		counter, err := decode(msg, true)
    		if err != nil {
    			return nil, handleError(err)
    		}
    		counters = append(counters, counter)
    	}
    	return counters, nil
    }
    
    var ErrObjectNotFound = errors.New("object not found")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top