Skip to content

Instantly share code, notes, and snippets.

View arya's full-sized avatar

Arya Asemanfar arya

  • San Francisco, California
View GitHub Profile
@arya
arya / gist:4159460
Created November 28, 2012 06:42
gc.log
{Heap before time travel invocations=2863 (full 0):
par new generation total 26424128K, used 23502462K [0x00007f5be2710000, 0x00007f62e2710000, 0x00007f62e2710000)
eden space 23488128K, 100% used [0x00007f5be2710000, 0x00007f617c0b0000, 0x00007f617c0b0000)
from space 2936000K, 0% used [0x00007f622f3e0000, 0x00007f62301dfbc8, 0x00007f62e2710000)
to space 2936000K, 0% used [0x00007f617c0b0000, 0x00007f617c0b0000, 0x00007f622f3e0000)
concurrent mark-sweep generation total 4070400K, used 1401580K [0x00007f62e2710000, 0x00007f63dae10000, 0x00007f63daf10000)
concurrent-mark-sweep perm gen total 122880K, used 56338K [0x00007f63daf10000, 0x00007f63e2710000, 0x00007f63e2710000)
2012-11-28T06:39:17.165+0000: 50432.440: [GC 50432.440: [ParNew
Desired survivor size 1503232000 bytes, new threshold 6 (max 6)
- age 1: 62804920 bytes, 62804920 total
package main
import (
"fmt"
"os/exec"
"syscall"
"time"
)
func main() {
@arya
arya / git-godeps
Last active January 17, 2018 22:58
#!/bin/bash
set -o errexit -o nounset -o pipefail
package=$1
package_dir=$(go list -f '{{.Dir}}' ${package})
pushd ${package_dir} > /dev/null
git_root=$(git rev-parse --show-toplevel)
pushd ${git_root} > /dev/null