Scala Compiler2.12.4 < Back
 

# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package ast
  Definition Classes
    nsc
-  package backend
  Definition Classes
    nsc
-  package classpath
  Definition Classes
    nsc
-  package doc
  Definition Classes
    nsc
-  package interactive
  Definition Classes
    nsc
-  package interpreter

  The main REPL related classes and values are as follows.

  The main REPL related classes and values are as follows. In addition to standard compiler classes Global and Settings, there are:

  History: an interface for session history. Completion: an interface for tab completion. ILoop (formerly InterpreterLoop): The umbrella class for a session. IMain (formerly Interpreter): Handles the evolving state of the session and handles submitting code to the compiler and handling the output. InteractiveReader: how ILoop obtains input. History: an interface for session history. Completion: an interface for tab completion. Power: a repository for more advanced/experimental features.

  ILoop contains { in: InteractiveReader, intp: IMain, settings: Settings, power: Power } InteractiveReader contains { history: History, completion: Completion } IMain contains { global: Global }

  Definition Classes
    nsc
-  package io
  Definition Classes
    nsc
-  package javac
  Definition Classes
    nsc
-  package plugins
  Definition Classes
    nsc
-  package profile
  Definition Classes
    nsc
- ConsoleProfileReporter
- EventType
- ExtendedThreadMxBean
- ExternalToolHook
- FutureInPhase
- GcEventData
- InPhase
- ProfileCounters
- ProfileReporter
- Profiler
- RunnableInPhase
- StreamProfileReporter
-  package reporters
  Definition Classes
    nsc
-  package settings
  Definition Classes
    nsc
-  package symtab
  Definition Classes
    nsc
-  package transform
  Definition Classes
    nsc
-  package typechecker
  Definition Classes
    nsc
-  package util
  Definition Classes
    nsc

p

scala.tools.nsc

# profile 

#### package profile

Content Hierarchy
 
Ordering

1. Alphabetic

Visibility

1. Public
2. All

### Type Members

1.  abstract class ExtendedThreadMxBean extends ThreadMXBean
2.  class ExternalToolHook extends AnyRef

   This is an external tool hook, it allows an external tool such as YourKit or JProfiler to instrument a particular phase of the compiler.

   This is an external tool hook, it allows an external tool such as YourKit or JProfiler to instrument a particular phase of the compiler. Profilers have hooks to allow starting and stopping profiling on a given method invocation.

   To use add -Yprofile-external-tool (defaults to typer) or -Yprofile-external-tool:<phase> (for a specific compiler phase) to the compiler flags.

   'before' will be called at the start of the target phase and 'after' at the end, allowing custom profiling to be triggered.

3.  class FutureInPhase[T] extends InPhase
4.  case class GcEventData(pool: String, gcStartMillis: Long, gcEndMillis: Long) extends Product with Serializable
5.  sealed abstract class InPhase extends AnyRef

   A wrapper to allow actions to be associated to a Phase.

   A wrapper to allow actions to be associated to a Phase. This aids profiling, particularly where a actions occur in multiple threads, or out of order

   When you are running a compilation task that involved some activity on a background thread (not the one running Global.compileUnits) the profiler is not aware of that thread and so cannot account for the activity.

   By wrapping the activity in this class or one of it children the profiler (if enabled) is informed and the statistics can be gathered

   No InPhase should run concurrently with another InPhase on the same thread - the statistics dont cope with nesting

6.  case class ProfileCounters(wallClockTimeNanos: Long, idleTimeNanos: Long, cpuTimeNanos: Long, userTimeNanos: Long, allocatedBytes: Long, retainedHeapBytes: Long, gcTimeMillis: Long) extends Product with Serializable
7.  sealed trait ProfileReporter extends AnyRef
8.  sealed trait Profiler extends AnyRef
9.  class RunnableInPhase extends InPhase with Runnable
10.  class StreamProfileReporter extends ProfileReporter

### Value Members

1.  object ConsoleProfileReporter extends ProfileReporter
2.  object EventType extends Enumeration
3.  object FutureInPhase

   an InPhase for Futures

   an InPhase for Futures

   By enclosing the activity in this wrapper the profiler (if enabled) is informed and the statistics can be gathered

4.  object InPhase
5.  object Profiler
6.  object RunnableInPhase

   an InPhase for Runnables

   an InPhase for Runnables

   By enclosing the activity in the doRun method of this class the profiler (if enabled) is informed and the statistics can be gathered

### Ungrouped