openmole / hybrid_environment

External openmole plugin, listening to the givens environments, and saving data and statistics about them.
1 stars 0 forks source link

HybridEnvironment

External openmole plugin, listening to the givens environments, and saving data and statistics about them.

HOW TO USE IT

JARJAR

EXAMPLE

import environment_listener.Listener

// Define the variables that are transmitted between the tasks
val seed = Val[Long]
val pi = Val[Double]
val piAvg = Val[Double]

STUFF

// Define the execution environment, here it is a local execution environment with 4 threads
val env = SSHEnvironment(
    "Arthur",
    "kaamelott",
    nbSlots=1
  )

Listener.registerEnvironment(env)

Listener.csv_path = "/home/Arthur/poulette.csv"

Listener.startMonitoring()

// Define and start the workflow
exploration -< (model on env hook ToStringHook()) >- (average hook ToStringHook())  

WILL PRODUCE

timezone, env_kind, env_name, memory, sec, min, core, hour, day_w, day_m, month, waitingTime, execTime, totalTime, failed, 
+0100, SSHEnvironment, Arthur@kaamelott, 0, 23, 34, 4, 16, 5, 29, 7, 0, 0, 64, false, 
+0100, SSHEnvironment, Arthur@kaamelott, 0, 24, 34, 4, 16, 5, 29, 7, 0, 0, 63, false, 
+0100, SSHEnvironment, Arthur@kaamelott, 0, 24, 34, 4, 16, 5, 29, 7, 0, 0, 63, false, 
+0100, SSHEnvironment, Arthur@kaamelott, 0, 19, 35, 4, 16, 5, 29, 7, 10, 42, 52, false, 
...