alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (profile_scalac)

This example Scala source code file (profile_scalac) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

agent, classpath, classpath, default_opts, default_opts, java_opts, opts, phases, phases, ynp_startup_options, ynp_startup_options, yourkit_path, yourkit_profile_phases, yourkit_profile_phases:-all

The Scala profile_scalac source code

#!/bin/bash
#
# To influence behavior, you can set:
#
#   YOURKIT_PATH
#   YOURKIT_PROFILE_PHASES
#   YNP_STARTUP_OPTIONS
#

# Start cpu sampling immediately
DEFAULT_OPTS="sampling,onexit=snapshot"

# Uses quick by default
CLASSPATH=`tools/quickcp`

AGENT=${YOURKIT_PATH:-/Applications/YourKit.app/bin/mac/libyjpagent.jnilib}
OPTS=${YNP_STARTUP_OPTIONS:-$DEFAULT_OPTS}
PHASES=${YOURKIT_PROFILE_PHASES:-all}

java $JAVA_OPTS \
  -classpath $CLASSPATH \
  -agentpath:$AGENT=$OPTS \
  scala.tools.nsc.Main -usejavacp \
  -Yprofile:$PHASES \
  "$@"

Other Scala examples (source code examples)

Here is a short list of links related to this Scala profile_scalac source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.