- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for my_profile (0.19 sec)
-
tests/associations_test.go
if err := DB.AutoMigrate(&Profile{}, &Member{}); err != nil { t.Fatalf("Failed to migrate, got error: %v", err) } member := Member{Refer: 1, Name: "foreign_key_constraints", Profile: Profile{Name: "my_profile"}} DB.Create(&member) var profile Profile if err := DB.First(&profile, "id = ?", member.Profile.ID).Error; err != nil { t.Fatalf("failed to find profile, got error: %v", err)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Feb 08 08:29:09 UTC 2023 - 10.9K bytes - Viewed (0) -
src/go/doc/testdata/testing.go
if *cpuProfile != "" { pprof.StopCPUProfile() // flushes profile to disk } if *memProfile != "" { f, err := os.Create(*memProfile) if err != nil { fmt.Fprintf(os.Stderr, "testing: %s", err) return } if err = pprof.WriteHeapProfile(f); err != nil { fmt.Fprintf(os.Stderr, "testing: can't write %s: %s", *memProfile, err) } f.Close() } } var timer *time.Timer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/main.go
flagRandLayout = flag.Int64("randlayout", 0, "randomize function layout") cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`") memprofile = flag.String("memprofile", "", "write memory profile to `file`") memprofilerate = flag.Int64("memprofilerate", 0, "set runtime.MemProfileRate to `rate`")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:59:50 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/ld_test.go
}, { "with_memprofile", ` package main import "runtime" func main() { runtime.MemProfile(nil, false) println(runtime.MemProfileRate) } `, "524288", }, { "with_memprofile_indirect", ` package main import "runtime" var f = runtime.MemProfile func main() { if f == nil { panic("no f") } println(runtime.MemProfileRate) } `,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
// memory profiles to cpu.prof and mem.prof: // // go test -cpuprofile cpu.prof -memprofile mem.prof -bench . // // To add equivalent profiling support to a standalone program, add // code like the following to your main function: // // var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`") // var memprofile = flag.String("memprofile", "", "write memory profile to `file`") // // func main() { // flag.Parse()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/main.go
buf.WriteString(a.regnames[i]) } r >>= 1 } return buf.String() } var archs []arch var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`") var memprofile = flag.String("memprofile", "", "write memory profile to `file`") var tracefile = flag.String("trace", "", "write trace to `file`") func main() { flag.Parse() if *cpuprofile != "" { f, err := os.Create(*cpuprofile)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:42:34 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h
// // (1) input tensors of that operation, // (2) output tensors of that operation, // (3) output tensors of preceding operations that are input tensors // of subsequent operations. using MemProfile = std::vector<SizeT>; // Used for specifying memory consumption at a certain operation in the // computational graph. struct MemSpec { int op_index; // The index of the operation
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 12K bytes - Viewed (0) -
src/cmd/go/internal/test/testflag.go
cf.BoolVar(&testFailFast, "failfast", false, "") cf.StringVar(&testFuzz, "fuzz", "", "") cf.Bool("fullpath", false, "") cf.StringVar(&testList, "list", "", "") cf.StringVar(&testMemProfile, "memprofile", "", "") cf.String("memprofilerate", "", "") cf.StringVar(&testMutexProfile, "mutexprofile", "", "") cf.String("mutexprofilefraction", "", "") cf.Var(&testOutputDir, "outputdir", "") cf.Int("parallel", 0, "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 19:25:24 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc
[&](int i) { return i >= remat.insert; })); } } } std::sort(deltas.begin(), deltas.end(), ByOpIndex); return deltas; } Rematerializer::MemProfile Rematerializer::GetMemProfile( const RematSpec& remat) const { const auto num_inserted = remat.end - remat.begin; std::vector<SizeT> profile(operations_.size() + num_inserted);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 13.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
// Don't report {single,multi}checker debugging // flags or fix as these have no effect on unitchecker // (as invoked by 'go vet'). switch f.Name { case "debug", "cpuprofile", "memprofile", "trace", "fix": return } b, ok := f.Value.(interface{ IsBoolFlag() bool }) isBool := ok && b.IsBoolFlag() flags = append(flags, jsonFlag{f.Name, isBool, f.Usage}) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0)