Esempio n. 1
0
 /// <summary>
 /// Gets the memory consumption needed by the current job
 /// </summary>
 /// <returns>The number of bytes consumed</returns>
 public override long GetMemoryConsumption()
 {
     if (incrementalValue != null)
     {
         return(MemoryMeter.ComputeMemoryConsumption(incrementalValue));
     }
     else
     {
         return(MemoryMeter.ComputeMemoryConsumption(functionCompiled));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the memory consumption needed by the current job
 /// </summary>
 /// <returns>The number of bytes consumed</returns>
 public override long GetMemoryConsumption()
 {
     return(MemoryMeter.ComputeMemoryConsumption(currentPattern));
 }