From 29e391c6af14f00eeeead6c4369bd661b4953f6d Mon Sep 17 00:00:00 2001 From: Chris Masone Date: Tue, 14 Jun 2016 14:23:47 -0700 Subject: [PATCH] Add profiling to csv-export --- samples/go/csv/csv-export/exporter.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/go/csv/csv-export/exporter.go b/samples/go/csv/csv-export/exporter.go index 7bc3ca267b..6f0d63a122 100644 --- a/samples/go/csv/csv-export/exporter.go +++ b/samples/go/csv/csv-export/exporter.go @@ -14,6 +14,7 @@ import ( "github.com/attic-labs/noms/go/d" "github.com/attic-labs/noms/go/datas" "github.com/attic-labs/noms/go/spec" + "github.com/attic-labs/noms/go/util/profile" "github.com/attic-labs/noms/samples/go/csv" "github.com/attic-labs/noms/samples/go/util" ) @@ -52,6 +53,8 @@ func main() { util.CheckError(err) err = d.Try(func() { + defer profile.MaybeStartProfile().Stop() + nomsList, structDesc := csv.ValueToListAndElemDesc(ds.Head().Get(datas.ValueField), ds.Database()) csv.Write(nomsList, structDesc, comma, os.Stdout) })