Skip to content

Instantly share code, notes, and snippets.

@vitillo
vitillo / Longitudinal dataset.ipynb
Last active January 17, 2016 19:16
Longitudinal dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vitillo
vitillo / Gecko thread activity, number of hangs, no extensions.ipynb
Created January 14, 2016 15:49
Gecko thread activity, number of hangs, no extensions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vitillo
vitillo / Gecko thread activity, number of hangs.ipynb
Created January 12, 2016 21:30
Gecko thread activity, number of hangs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vitillo
vitillo / Gecko thread activity.ipynb
Created January 12, 2016 15:07
Gecko thread activity
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vitillo
vitillo / EVENTLOOP_UI_ACTIVITY_EXP_MS over 50ms.ipynb
Created January 12, 2016 10:43
EVENTLOOP_UI_ACTIVITY_EXP_MS over 50ms
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough banksean@gmail.com
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import scalaz._
import Scalaz._
import org.json4s._
import org.json4s.native.JsonMethods._
case class Hang(stack: List[String], histogram: Histogram)
case class ThreadHangs(threadName: Option[String], hangs: Map[List[String], Histogram], activity: Histogram) {
def this(name: String, hangs: Option[List[Hang]], activity: Histogram) =