- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 245 for sloc (0.03 sec)
-
src/internal/trace/traceviewer/pprof.go
funcs[frame.File+frame.Fn] = fn } loc = &profile.Location{ ID: uint64(len(p.Location) + 1), Address: frame.PC, Line: []profile.Line{ { Function: fn, Line: int64(frame.Line), }, }, } p.Location = append(p.Location, loc) locs[frame.PC] = loc } sloc = append(sloc, loc) } p.Sample = append(p.Sample, &profile.Sample{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:28:02 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 8.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go
} }) return nil, nil } func isAttr(t types.Type) bool { return analysisutil.IsNamedType(t, "log/slog", "Attr") } // shortName returns a name for the function that is shorter than FullName. // Examples: // // "slog.Info" (instead of "log/slog.Info") // "slog.Logger.With" (instead of "(*log/slog.Logger).With") func shortName(fn *types.Func) string { var r string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/flatbuffer_to_mlir.cc
std::string error; auto loc = mlir::FileLineColLoc::get(context, input->getBufferIdentifier(), 0, 0); std::vector<std::string> inputs; std::vector<std::string> outputs; return tflite::FlatBufferToMlir( absl::string_view(input->getBufferStart(), input->getBufferSize()), context, loc, false, inputs, outputs, false); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:39:37 UTC 2024 - 3.4K bytes - Viewed (0) -
src/log/slog/example_test.go
package slog_test import ( "log/slog" "net/http" "os" "time" ) func ExampleGroup() { r, _ := http.NewRequest("GET", "localhost", nil) // ... logger := slog.New( slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{ ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr { if a.Key == slog.TimeKey && len(groups) == 0 { return slog.Attr{} } return a }, }), )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 14:56:30 UTC 2023 - 857 bytes - Viewed (0) -
src/log/slog/internal/benchmarks/handlers_test.go
t.Fatal(err) } got := h.ringBuffer[0] if !got.Time.Equal(r.Time) || !slices.EqualFunc(attrSlice(got), attrSlice(r), slog.Attr.Equal) { t.Errorf("got %+v, want %+v", got, r) } }) } func attrSlice(r slog.Record) []slog.Attr { var as []slog.Attr r.Attrs(func(a slog.Attr) bool { as = append(as, a); return true }) return as
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/sccp_test.go
Valu("cmp", OpLess64, c.config.Types.Bool, 0, nil, "v1", "v2"), If("cmp", "b2", "b3")), Bloc("b2", Valu("v3", OpConst64, c.config.Types.Int64, 3, nil), Goto("b4")), Bloc("b3", Valu("v4", OpConst64, c.config.Types.Int64, 4, nil), Goto("b4")), Bloc("b4", Valu("merge", OpPhi, c.config.Types.Int64, 0, nil, "v3", "v4"), Exit("mem"))) sccp(fun.f) CheckFunc(fun.f)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 21:01:50 UTC 2023 - 3.6K bytes - Viewed (0) -
src/runtime/mwbbuf.go
// file deals only with the buffer. // // The write barrier has a fast path and a slow path. The fast path // simply enqueues to a per-P write barrier buffer. It's written in // assembly and doesn't clobber any general purpose registers, so it // doesn't have the usual overheads of a Go call. // // When the buffer fills up, the write barrier invokes the slow path // (wbBufFlush) to flush the buffer to the GC work queues. In this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.1K bytes - Viewed (0) -
src/log/slog/example_log_level_test.go
currentLogLevel := slog.SetLogLoggerLevel(slog.LevelError) defer slog.SetLogLoggerLevel(currentLogLevel) // revert changes after the example defer slog.SetDefault(slog.Default()) // revert changes after the example slog.SetDefault(slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{ReplaceAttr: slogtest.RemoveTime}))) log.Print("error") // level=ERROR msg=error // Output: // level=ERROR msg=error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 10 21:25:30 UTC 2023 - 1.9K bytes - Viewed (0) -
src/log/slog/level.go
// OpenTelemetry's mapping. Subtracting 9 from an OpenTelemetry level in the // DEBUG, INFO, WARN and ERROR ranges converts it to the corresponding slog // Level range. OpenTelemetry also has the names TRACE and FATAL, which slog // does not. But those OpenTelemetry levels can still be represented as slog // Levels by using the appropriate integers. const ( LevelDebug Level = -4 LevelInfo Level = 0 LevelWarn Level = 4 LevelError Level = 8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 30 17:34:43 UTC 2023 - 5.6K bytes - Viewed (0)