Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for formatTag (0.22 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    					continue
    				}
    				n.addSample(dw, w, labels, sample.NumLabel, sample.NumUnit, o.FormatTag, false)
    				if parent != nil {
    					parent.AddToEdgeDiv(n, dw, w, false, lidx != len(lines)-1)
    				}
    				parent = n
    			}
    		}
    		if parent != nil {
    			parent.addSample(dw, w, labels, sample.NumLabel, sample.NumUnit, o.FormatTag, true)
    		}
    	}
    
    	nodes := make(Nodes, 0, len(prof.Location))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	// as a nodelet in the graph view.
    	prof.RemoveLabel("pprof::base")
    
    	formatTag := func(v int64, key string) string {
    		return measurement.ScaledLabel(v, key, o.OutputUnit)
    	}
    
    	gopt := &graph.Options{
    		SampleValue:       o.SampleValue,
    		SampleMeanDivisor: o.SampleMeanDivisor,
    		FormatTag:         formatTag,
    		CallTree:          o.CallTree && (o.OutputFormat == Dot || o.OutputFormat == Callgrind),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  3. src/archive/tar/format.go

    	// the PAX format.
    	formatSTAR
    
    	formatMax
    )
    
    func (f Format) has(f2 Format) bool   { return f&f2 != 0 }
    func (f *Format) mayBe(f2 Format)     { *f |= f2 }
    func (f *Format) mayOnlyBe(f2 Format) { *f &= f2 }
    func (f *Format) mustNotBe(f2 Format) { *f &^= f2 }
    
    var formatNames = map[Format]string{
    	formatV7: "V7", FormatUSTAR: "USTAR", FormatPAX: "PAX", FormatGNU: "GNU", formatSTAR: "STAR",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. pkg/fieldpath/fieldpath.go

    */
    
    package fieldpath
    
    import (
    	"fmt"
    	"sort"
    	"strconv"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/apimachinery/pkg/util/validation"
    )
    
    // FormatMap formats map[string]string to a string.
    func FormatMap(m map[string]string) (fmtStr string) {
    	// output with keys in sorted order to provide stable output
    	keys := make([]string, 0, len(m))
    	var grow int
    	for k, v := range m {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 06:26:55 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    				"uname":      strings.Repeat("long", 10),
    			},
    			Format: FormatPAX,
    		}},
    	}, {
    		file: "testdata/pax-global-records.tar",
    		headers: []*Header{{
    			Typeflag:   TypeXGlobalHeader,
    			Name:       "global1",
    			PAXRecords: map[string]string{"path": "global1", "mtime": "1500000000.0"},
    			Format:     FormatPAX,
    		}, {
    			Typeflag: TypeReg,
    			Name:     "file1",
    			ModTime:  time.Unix(0, 0),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  6. src/archive/tar/common.go

    		format.mayOnlyBe(FormatPAX)
    	}
    	if !isHeaderOnlyType(h.Typeflag) && h.Size < 0 {
    		return FormatUnknown, nil, headerError{"negative size on header-only type"}
    	}
    
    	// Check PAX records.
    	if len(h.Xattrs) > 0 {
    		for k, v := range h.Xattrs {
    			paxHdrs[paxSchilyXattr+k] = v
    		}
    		whyOnlyPAX = "only PAX supports Xattrs"
    		format.mayOnlyBe(FormatPAX)
    	}
    	if len(h.PAXRecords) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. pkg/fieldpath/fieldpath_test.go

    node.alpha.kubernetes.io/ttl="0"
    volumes.kubernetes.io/controller-managed-attach-detach="true"`,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if gotFmtStr := FormatMap(tt.args.m); gotFmtStr != tt.wantFmtStr {
    				t.Errorf("FormatMap() = %v, want %v", gotFmtStr, tt.wantFmtStr)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 06:26:55 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    	// normally be visible to the outside. As such, this loop iterates through
    	// one or more "header files" until it finds a "normal file".
    	format := FormatUSTAR | FormatPAX | FormatGNU
    	for {
    		// Discard the remainder of the file and any padding.
    		if err := discard(tr.r, tr.curr.physicalRemaining()); err != nil {
    			return nil, err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. docs/pt/docs/contributing.md

    Desse modo, você não tem que "instalar" sua versão local para ser capaz de testar cada mudança.
    
    ### Formato
    
    Tem um arquivo que você pode rodar que irá formatar e limpar todo o seu código:
    
    <div class="termy">
    
    ```console
    $ bash scripts/format.sh
    ```
    
    </div>
    
    Ele irá organizar também todos os seus imports.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 11 21:38:15 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  10. src/archive/tar/writer.go

    		}
    		if err := tw.writeRawFile(name, data, flag, FormatPAX); err != nil || isGlobal {
    			return err // Global headers return here
    		}
    	}
    
    	// Pack the main header.
    	var f formatter // Ignore errors since they are expected
    	fmtStr := func(b []byte, s string) { f.formatString(b, toASCII(s)) }
    	blk := tw.templateV7Plus(hdr, fmtStr, f.formatOctal)
    	blk.setFormat(FormatPAX)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top