- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for parseProfile (0.45 sec)
-
src/runtime/pprof/pprof_test.go
// This will be called each time, we only care about the last. We // can't make this conditional or this function won't be inlined. dumpCallers(pcs) recursionChainTop(x-1, pcs) } func parseProfile(t *testing.T, valBytes []byte, f func(uintptr, []*profile.Location, map[string][]string)) *profile.Profile { p, err := profile.Parse(bytes.NewReader(valBytes)) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0) -
pkg/volume/util/fsquota/project.go
} func parseProjFile(f *os.File, parser func(l string) projectType) []projectType { var answer []projectType scanner := bufio.NewScanner(f) for scanner.Scan() { answer = append(answer, parser(scanner.Text())) } return answer } func readProjectFiles(projects *os.File, projid *os.File) projectsList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 10.6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/AbstractDaemonFixture.groovy
final DaemonContext context AbstractDaemonFixture(DaemonLogFile daemonLog, GradleVersion version) { this.daemonLog = daemonLog this.context = DaemonContextParser.parseFromFile(daemonLog, version) if (!this.context) { println "Could not parse daemon log: \n$daemonLog.text"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 15:22:16 UTC 2024 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/cover/profile.go
func (p byFileName) Less(i, j int) bool { return p[i].FileName < p[j].FileName } func (p byFileName) Swap(i, j int) { p[i], p[j] = p[j], p[i] } // ParseProfiles parses profile data in the specified file and returns a // Profile for each source file described therein. func ParseProfiles(fileName string) ([]*Profile, error) { pf, err := os.Open(fileName) if err != nil { return nil, err } defer pf.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 17:02:03 UTC 2021 - 7.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonContextParser.java
import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Stream; public class DaemonContextParser { @Nullable public static DaemonContext parseFromFile(DaemonLogFile log, GradleVersion version) { try (Stream<String> lines = log.lines()) { return lines.map(line -> parseFrom(line, version)).filter(Objects::nonNull).findFirst().orElse(null);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 09:22:54 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/cover/func.go
// fmt/scan.go:1046: doScan 100.0% // fmt/scan.go:1075: advance 96.2% // fmt/scan.go:1119: doScanf 96.8% // total: (statements) 91.9% func funcOutput(profile, outputFile string) error { profiles, err := cover.ParseProfiles(profile) if err != nil { return err } dirs, err := findPkgs(profiles) if err != nil { return err } var out *bufio.Writer if outputFile == "" { out = bufio.NewWriter(os.Stdout)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 6.3K bytes - Viewed (0) -
src/cmd/cover/html.go
// coverage report, writing it to outfile. If outfile is empty, // it writes the report to a temporary file and opens it in a web browser. func htmlOutput(profile, outfile string) error { profiles, err := cover.ParseProfiles(profile) if err != nil { return err } var d templateData dirs, err := findPkgs(profiles) if err != nil { return err } for _, profile := range profiles {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 14:33:36 UTC 2022 - 6.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
// simply ignore those statements when found in go.mod files // in dependencies. func ParseLax(file string, data []byte, fix VersionFixer) (*File, error) { return parseToFile(file, data, fix, false) } func parseToFile(file string, data []byte, fix VersionFixer, strict bool) (parsed *File, err error) { fs, err := parse(file, data) if err != nil { return nil, err } f := &File{ Syntax: fs,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0)