Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for perblock (0.15 sec)

  1. src/cmd/internal/cov/covcmd/cmddefs.go

    	OutConfig string
    
    	// Import path for the package being instrumented.
    	PkgPath string
    
    	// Package name.
    	PkgName string
    
    	// Instrumentation granularity: one of "perfunc" or "perblock" (default)
    	Granularity string
    
    	// Module path for this package (empty if no go.mod in use)
    	ModulePath string
    
    	// Local mode indicates we're doing a coverage build or test of a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 16:13:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/cover/cfg_test.go

    		t.Fatal(err)
    	}
    
    	scenarios := []struct {
    		mode, gran string
    	}{
    		{
    			mode: "count",
    			gran: "perblock",
    		},
    		{
    			mode: "set",
    			gran: "perfunc",
    		},
    		{
    			mode: "regonly",
    			gran: "perblock",
    		},
    	}
    
    	var incfg string
    	apkgfiles := []string{filepath.Join(tpath, "a", "a.go")}
    	for _, scenario := range scenarios {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/coverage/cover.go

    	if cm == coverage.CtrModeInvalid {
    		base.Fatalf("bad setting %q for covermode in coveragecfg:",
    			counterMode)
    	}
    	var cg coverage.CounterGranularity
    	switch counterGran {
    	case "perblock":
    		cg = coverage.CtrGranularityPerBlock
    	case "perfunc":
    		cg = coverage.CtrGranularityPerFunc
    	default:
    		base.Fatalf("bad setting %q for covergranularity in coveragecfg:",
    			counterGran)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/internal/coverage/defs.go

    	CtrGranularityInvalid CounterGranularity = iota
    	CtrGranularityPerBlock
    	CtrGranularityPerFunc
    )
    
    func (cm CounterGranularity) String() string {
    	switch cm {
    	case CtrGranularityPerBlock:
    		return "perblock"
    	case CtrGranularityPerFunc:
    		return "perfunc"
    	}
    	return "<invalid>"
    }
    
    // Name of file within the "go test -cover" temp coverdir directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. src/cmd/cover/cover.go

    		return fmt.Errorf("error reading pkgconfig file %q: %v", path, err)
    	}
    	switch pkgconfig.Granularity {
    	case "perblock":
    		cgran = coverage.CtrGranularityPerBlock
    	case "perfunc":
    		cgran = coverage.CtrGranularityPerFunc
    	default:
    		return fmt.Errorf(`%s: pkgconfig requires perblock/perfunc value`, path)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/work/exec.go

    		PkgPath: p.ImportPath,
    		PkgName: p.Name,
    		// Note: coverage granularity is currently hard-wired to
    		// 'perblock'; there isn't a way using "go build -cover" or "go
    		// test -cover" to select it. This may change in the future
    		// depending on user demand.
    		Granularity: "perblock",
    		OutConfig:   p.Internal.Cover.Cfg,
    		Local:       p.Internal.Local,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockPayload.java

    public abstract class BlockPayload {
        private Block block;
    
        public Block getBlock() {
            return block;
        }
    
        public void setBlock(Block block) {
            this.block = block;
        }
    
        public BlockPointer getPos() {
            return getBlock().getPos();
        }
    
        public BlockPointer getNextPos() {
            return getBlock().getNextPos();
        }
    
        protected abstract int getSize();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java

                if (entries.size() > maxBlockEntries) {
                    FreeListBlock newBlock = new FreeListBlock();
                    newBlock.largestInNextBlock = largestInNextBlock;
                    newBlock.nextBlock = nextBlock;
                    newBlock.prev = this;
                    newBlock.next = next;
                    next = newBlock;
    
                    List<FreeListEntry> newBlockEntries = entries.subList(0, entries.size() / 2);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FileBackedBlockStore.java

            nextBlock = 0;
        }
    
        @Override
        public void attach(BlockPayload block) {
            if (block.getBlock() == null) {
                block.setBlock(new BlockImpl(block));
            }
        }
    
        @Override
        public void remove(BlockPayload block) {
            BlockImpl blockImpl = (BlockImpl) block.getBlock();
            blockImpl.detach();
        }
    
        @Override
        public void flush() {
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BTreePersistentIndexedCache.java

                } else {
                    newBlock = new DataBlock(value);
                }
                if (newBlock != null) {
                    store.write(newBlock);
                    lookup.indexBlock.put(hashCode, newBlock.getPos());
                }
                store.flush();
            } catch (Exception e) {
                throw new UncheckedIOException(String.format("Could not add entry '%s' to %s.", key, this), e);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 26.5K bytes
    - Viewed (0)
Back to top