Package com.cloud.utils

Examples of com.cloud.utils.Profiler.stop()


                pThreads[i].join();
            } catch (InterruptedException ie) {
                ie.printStackTrace();
            }
        }
        p.stop();
        System.out.println("Num Vms= " + maxVmId + " Queue size = " + queue.size() + " time=" + p.getDuration() + " ms");
        assertEquals(maxVmId, queue.size());
    }

    public void testNumJobsEqToNumVms3() {
View Full Code Here


            work.add(i);
        }
        Profiler profiler = new Profiler();
        profiler.start();
        _sgMgr.scheduleRulesetUpdateToHosts(work, false, null);
        profiler.stop();

        System.out.println("Done " + numVms + " in " + profiler.getDuration() + " ms");
    }

    @Test
View Full Code Here

            wait();
        } else {
            int ms = s * 1000;
            wait(ms);
        }
        profiler.stop();

        if (s_logger.isTraceEnabled()) {
            s_logger.trace("Synchronized command - sending completed, time: " + profiler.getDuration() + ", answer: " +
                (_answers != null ? _answers[0].toString() : "null"));
        }
View Full Code Here

                throw new CloudRuntimeException("Failed to create ruleset log entries");
            }
        }
        int newJobs = _workQueue.submitWorkForVms(workItems);
        _mBean.logScheduledDetails(workItems);
        p.stop();
        if (s_logger.isDebugEnabled()) {
            s_logger.debug("Security Group Mgr v2: done scheduling ruleset updates for " + workItems.size() + " vms: num new jobs=" + newJobs +
                " num rows insert or updated=" + updated + " time taken=" + p.getDuration());
        }
    }
View Full Code Here

                            _peerScanInited = true;
                            initPeerScan();
                        }

                        peerScan();
                        profilerPeerScan.stop();

                    } finally {
                        profiler.stop();

                        if (profiler.getDuration() >= HeartbeatInterval.value()) {
View Full Code Here

                                        Profiler profiler = new Profiler();
                                        profiler.start();

                                        notifyNodeJoined(msg.getNodes());

                                        profiler.stop();
                                        if (profiler.getDuration() > 1000) {
                                            if (s_logger.isDebugEnabled()) {
                                                s_logger.debug("Notifying management server join event took " + profiler.getDuration() + " ms");
                                            }
                                        } else {
View Full Code Here

                                        Profiler profiler = new Profiler();
                                        profiler.start();

                                        notifyNodeLeft(msg.getNodes());

                                        profiler.stop();
                                        if (profiler.getDuration() > 1000) {
                                            if (s_logger.isDebugEnabled()) {
                                                s_logger.debug("Notifying management server leave event took " + profiler.getDuration() + " ms");
                                            }
                                        } else {
View Full Code Here

        profiler.start();

        Profiler profilerQueryActiveList = new Profiler();
        profilerQueryActiveList.start();
        List<ManagementServerHostVO> currentList = _mshostDao.getActiveList(new Date(cutTime.getTime() - HeartbeatThreshold.value()));
        profilerQueryActiveList.stop();

        Profiler profilerSyncClusterInfo = new Profiler();
        profilerSyncClusterInfo.start();
        List<ManagementServerHostVO> removedNodeList = new ArrayList<ManagementServerHostVO>();
        List<ManagementServerHostVO> invalidatedNodeList = new ArrayList<ManagementServerHostVO>();
View Full Code Here

                        }
                    }
                }
            }
        }
        profilerSyncClusterInfo.stop();

        Profiler profilerInvalidatedNodeList = new Profiler();
        profilerInvalidatedNodeList.start();
        // process invalidated node list
        if (invalidatedNodeList.size() > 0) {
View Full Code Here

                }
            }

            queueNotification(new ClusterManagerMessage(ClusterManagerMessage.MessageType.nodeRemoved, invalidatedNodeList));
        }
        profilerInvalidatedNodeList.stop();

        Profiler profilerRemovedList = new Profiler();
        profilerRemovedList.start();
        // process removed node list
        Iterator<ManagementServerHostVO> it = removedNodeList.iterator();
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.