This file contains hidden or 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
#!/usr/bin/python | |
import sys | |
def parse(): | |
if len(sys.argv) != 2: | |
print 'must pass memory trace file' | |
sys.exit(2) | |
file_name = sys.argv[1] |
This file contains hidden or 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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"os" | |
"sort" | |
"strconv" | |
"strings" |
This file contains hidden or 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
package main | |
import ( | |
"database/sql" | |
"flag" | |
"fmt" | |
"math/rand" | |
"os" | |
"sync" | |
"time" |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"os" | |
"sort" | |
"github.com/golang/protobuf/proto" |
This file contains hidden or 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
#![feature(test)] | |
extern crate test; | |
extern crate parking_lot; | |
extern crate crossbeam_channel; | |
use std::collections::VecDeque; | |
use test::Bencher; | |
use std::sync::mpsc::{channel, sync_channel}; |
This file contains hidden or 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
#include <unistd.h> | |
#include <stdio.h> | |
#include <sys/syscall.h> | |
#include <sys/types.h> | |
#include <sys/signal.h> | |
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) | |
// List common use signal names | |
static const struct signal_name { |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"math/rand" | |
"net/http" | |
_ "net/http/pprof" |
This file contains hidden or 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
#![feature(test)] | |
#![feature(integer_atomics)] | |
extern crate test; | |
extern crate libc; | |
use std::f64; | |
use std::sync::atomic::{AtomicU64 as StdAtomicU64, Ordering}; | |
pub struct AtomicF64 { |
This file contains hidden or 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
#![feature(fnbox)] | |
extern crate spin; | |
use std::usize; | |
use std::time::{Duration, Instant}; | |
use std::sync::{Arc, Condvar, Mutex}; | |
use std::thread::{Builder, JoinHandle}; | |
use std::marker::PhantomData; | |
use std::boxed::FnBox; |
This file contains hidden or 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
#![feature(fnbox)] | |
use std::usize; | |
use std::time::{Duration, Instant}; | |
use std::sync::{Arc, Condvar, Mutex}; | |
use std::thread::{Builder, JoinHandle}; | |
use std::marker::PhantomData; | |
use std::boxed::FnBox; | |
use std::collections::VecDeque; | |
use std::sync::atomic::{AtomicUsize, Ordering as AtomicOrdering}; |