override fun doRun()

in src/main/kotlin/com/uber/nanoscope/Main.kt [138:148]


    override fun doRun() {
        val extOption = getExtOption();
        val trace = Nanoscope.startTracing(getPackageName(), extOption)
        println("Tracing" + if (extOption == null) { "" } else { " with " + extOption } + " ... (Press ENTER to stop)")
        while (true) {
            if (System.`in`.read() == 10) {
                break
            }
        }
        trace.stop()
    }