This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires https://go-review.googlesource.com/c/38320 | |
package popcnt | |
import ( | |
"math/bits" | |
"testing" | |
) | |
var sink interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from gdb.unwinder import Unwinder, register_unwinder | |
except ImportError: | |
Unwinder = None | |
if Unwinder is not None: | |
class FrameID(object): | |
def __init__(self, sp, pc): | |
self.sp = sp | |
self.pc = pc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read gcpacertrace log from stdin and plot pacing. | |
import sys | |
import subprocess | |
gp = subprocess.Popen(["gnuplot", "-persist", "-e", """ | |
set xrange [0:2]; | |
set yrange [0:1]; | |
set xlabel "Heap ratio (h)"; | |
set ylabel "GC CPU (u_a)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"image/color" | |
"math" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You may want to first disable transparent huge pages: | |
// | |
// echo never | sudo tee /sys/kernel/mm/transparent_hugepage/enabled | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" |
OlderNewer