mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-05 19:31:36 -05:00
Add profiling to csv-export
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user