kosx

Google CMD goimports_gc.go

Dec 30th, 2020
1,065
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build gc
  5. package main
  6. import (
  7.     "flag"
  8.     "runtime/trace"
  9. )
  10. var traceProfile = flag.String("trace", "", "trace profile output")
  11. func doTrace() func() {
  12.     if *traceProfile != "" {
  13.         bw, flush := bufferedFileWriter(*traceProfile)
  14.         trace.Start(bw)
  15.         return func() {
  16.             flush()
  17.             trace.Stop()
  18.         }
  19.     }
  20.     return func() {}
  21. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×