aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/pkg/profile/trace_test.go
diff options
context:
space:
mode:
authorLukas Macko <lmacko@cisco.com>2017-09-07 10:00:26 +0200
committerLukas Macko <lmacko@cisco.com>2017-09-07 10:09:45 +0200
commitf2cbe790a5c3c3e8cb59b592c252b2b84025bd91 (patch)
treeac2fafdcb653ee05ed8ca3cfbc18d818cf6e7f3d /vendor/github.com/pkg/profile/trace_test.go
parent13ab652c89a8bf5b16017156f8fb388e1889a8e1 (diff)
Wait until vpp is ready + Update vendor
Change-Id: I7c42d44d60f84fd21e55f9e4928d776f5466cc83 Signed-off-by: Lukas Macko <lmacko@cisco.com>
Diffstat (limited to 'vendor/github.com/pkg/profile/trace_test.go')
-rw-r--r--vendor/github.com/pkg/profile/trace_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/pkg/profile/trace_test.go b/vendor/github.com/pkg/profile/trace_test.go
new file mode 100644
index 0000000..6a61d79
--- /dev/null
+++ b/vendor/github.com/pkg/profile/trace_test.go
@@ -0,0 +1,8 @@
+package profile_test
+
+import "github.com/pkg/profile"
+
+func ExampleTraceProfile() {
+ // use execution tracing, rather than the default cpu profiling.
+ defer profile.Start(profile.TraceProfile).Stop()
+}