Package com.opengamma.util.monitor

Examples of com.opengamma.util.monitor.OperationTimer.finished()


          for (int j = 0; j < n; j++) {
            final double v = pricers[i][j].impliedVol(VOL);
          }
        }
      }
      timer2.finished();
    }
  }

}
View Full Code Here


      } else {
        // Split the graph into multiple fragments
        return createMultipleNodePlan(graph, logModeSource, functionInitializationId);
      }
    } finally {
      timer.finished();
    }
  }

}
View Full Code Here

        }
      }
    } finally {
      _subscriptionsLock.unlock();
    }
    timer.finished();
  }

  /**
   * Replace the market data provider if required. It will be replaced if it is not already setup or if the user has changed.
   *
 
View Full Code Here

    // lock otherwise we can hit deadlocks when two similar views (e.g. same view, different
    // valuation times) are launched.
    if (!newSubscriptions.isEmpty()) {
      OperationTimer timer = new OperationTimer(s_logger, "Adding {} market data subscriptions", newSubscriptions.size());
      makeSubscriptionRequest(newSubscriptions);
      timer.finished();
    }
  }

  /**
   * Checks the required subscriptions against the currently held subscriptions, removing ones that are
View Full Code Here

      throw new OpenGammaRuntimeException("Interrupted while initializing function definitions. ViewProcessor not safe to use.");
    }
    _initializedFunctionRepository = initialized;
    getFunctionCompilationContext().setFunctionReinitializer(null);
    getFunctionCompilationContext().setFunctionInitId(initId);
    timer.finished();
  }

  /**
   * Initializes all functions.
   *
 
View Full Code Here

      s_logger.info("Starting on lifecycle call.");
      _isStarted = true;
    } finally {
      _lifecycleLock.unlock();
    }
    timer.finished();
    _viewProcessorEventListenerRegistry.notifyViewProcessorStarted();
  }

  @Override
  public Future<Runnable> suspend(final ExecutorService executor) {
View Full Code Here

        for (int i = 0; i < numEntries; i++) {
          random.nextBytes(bytes);
          dataStore.put(i, bytes);
          currentMaxIdentifier.set(i);
        }
        long numMillis = timer.finished();

        double msPerPut = ((double) numMillis) / ((double) numGets);
        double putsPerSecond = 1000.0 / msPerPut;
       
        s_logger.info("for {} puts, {} ms/put, {} puts/sec", new Object[] {numEntries, msPerPut, putsPerSecond});
View Full Code Here

        for (int i = 0; i < numGets; i++) {
          int maxIdentifier = (int) currentMaxIdentifier.get();
          long actualIdentifier = random.nextInt(maxIdentifier);
          dataStore.get(actualIdentifier);
        }
        long numMillis = timer.finished();

        double msPerGet = ((double) numMillis) / ((double) numGets);
        double getsPerSecond = 1000.0 / msPerGet;
       
        s_logger.info("for {} gets, {} ms/get, {} gets/sec", new Object[] {numGets, msPerGet, getsPerSecond});
View Full Code Here

        for (int i = 0; i < numGets; i++) {
          int maxIdentifier = (int) currentMaxIdentifier.get();
          long actualIdentifier = random.nextInt(maxIdentifier);
          dataStore.get(actualIdentifier);
        }
        long numMillis = timer.finished();

        double msPerGet = ((double) numMillis) / ((double) numGets);
        double getsPerSecond = 1000.0 / msPerGet;
       
        s_logger.info("for {} gets, {} ms/get, {} gets/sec", new Object[] {numGets, msPerGet, getsPerSecond});
View Full Code Here

    } else {
      singleOperationGetIdentifier(numRequirementNames, numIdentifiers, idSource);
    }

    idSource.stop();
    long numMillis = timer.finished();

    double msPerPut = ((double) numMillis) / ((double) numSpecifications);
    double putsPerSecond = 1000.0 / msPerPut;

    s_logger.info("Split time was {}ms/put, {}puts/sec", msPerPut, putsPerSecond);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.