zoekt: 94 files / 483 matches / 61.23ms neogrok: 20 files / 111 matches
neogrokinternal/trace/trace.go 11 matches | Go | №1
29
if parent := TraceFromContext(ctx); parent != nil {30 tr.LazyPrintf("parent: %s", parent.family)31 trace.family = parent.family + " > " + family43
44 // LazyPrintf evaluates its arguments with fmt.Sprintf each time the45 // /debug/requests page is rendered. Any memory referenced by a will be46 // pinned until the trace is finished and later discarded.47 func (t *Trace) LazyPrintf(format string, a ...any) {48 t.span.LogFields(Printf("log", format, a...))49 t.trace.LazyPrintf(format, a...)50 }neogrokapi.go 5 matches | Go | №2
144
var b strings.Builder145 fmt.Fprintf(&b, "%s", what)146 if raw != -1 {147 fmt.Fprintf(&b, "(%s)", strconv.FormatFloat(raw, 'f', -1, 64))148 }149 fmt.Fprintf(&b, ":%.2f, ", computed)150 m.Debug += b.String()neogrokinternal/e2e/examples/large_file.cc 2 matches | C++ | №3
neogrokcmd/flags.go 1 match | Go | №4
neogrokweb/server.go 6 matches | Go | №5
neogrokindex/read.go 2 matches | Go | №6
neogrokindex/eval.go 1 match | Go | №7
neogrokquery/query.go 21 matches | Go | №8
neogrokindex/btree.go 2 matches | Go | №9
neogrokquery/parse.go 2 matches | Go | №10
neogrokindex/ctags.go 5 matches | Go | №11
274
if errors.As(err, &timeoutErr) {275 log.Printf("WARN: skipping symbol analysis after timeout: file=%q parser=%s duration=%v timeout=%v size_bytes=%d", m.currentDocName, ctags.ParserToString(parserType), now.Sub(m.currentDocStart).Truncate(time.Second), timeoutErr.Timeout, m.currentDocSize)276 } else if m.currentDocStuckCount > 0 {277 // Inform done if we warned about the current document.278 log.Printf("symbol analysis for %s (size %d bytes) is done and found %d symbols", m.currentDocName, m.currentDocSize, len(entries))279 }305
m.mu.Lock()306 log.Printf("symbol analysis finished for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)307 m.mu.Unlock()neogrokindex/score.go 8 matches | Go | №12
neogrokindex/merge.go 4 matches | Go | №13
45
46 dstName = filepath.Join(dstDir, fmt.Sprintf("compound-%x_v%d.%05d.zoekt", hasher.Sum(nil), NextIndexFormatVersion, 0))47 tmpName = dstName + ".tmp"86
87 log.Printf("finished shard %s: %d index bytes (overhead %3.1f)", fn, fi.Size(),88 float64(fi.Size())/float64(ib.ContentSize()+1))neogroksearch/sched.go 2 matches | Go | №14
neogrokquery/regexp.go 2 matches | Go | №15
neogrokweb/snippets.go 2 matches | Go | №16
neogroksearch/shards.go 17 matches | Go | №17
neogrokindex/builder.go 13 matches | Go | №18
neogrokindex/hititer.go 4 matches | Go | №19
47
func (i *distanceHitIterator) String() string {48 return fmt.Sprintf("dist(%d, %v, %v)", i.distance, i.i1, i.i2)49 }154
func (i *inMemoryIterator) String() string {155 return fmt.Sprintf("mem(%s):%v", i.what, i.postings)156 }