Package org.jboss.dashboard.profiler

Examples of org.jboss.dashboard.profiler.ThreadProfile$CodeBlockEndEvent


    protected void runWork(FactoryWork work, boolean profile) {
        boolean contextOwner = !ComponentsContextManager.isContextStarted();
        if (contextOwner) ComponentsContextManager.startContext();

        ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
        boolean profileOwner = threadProfile == null;
        if (profile && profileOwner) threadProfile = Profiler.lookup().beginThreadProfile();

        try {
            work.doWork();
View Full Code Here


    // Called by MemoryAppender

    void onAppend(LoggingEvent event) {
        // Attach the event to the current thread.
        if (ComponentsContextManager.isContextStarted()) {
            ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
            if (threadProfile != null) threadProfile.addLog4JEvent(event);
        }
        // Calculate the current throughput.
        calculateThroughput();

        // Avoid high throughput.
View Full Code Here

        ctx.put("Request date", new Date());
        ctx.put("Request header:user-agent", request.getHeader("user-agent"));
        ctx.put("Request header:referer", request.getHeader("referer"));
        ctx.put("Request header:cookie", request.getHeader("cookie"));

        ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
        if (threadProfile != null) threadProfile.addContextProperties(ctx);

        Map params = request.getParameterMap();
        Iterator it = params.keySet().iterator();
        while (it.hasNext()) {
            String key = (String) it.next();
View Full Code Here

    public DataProviderManager getDataProviderManager() {
        return dataProviderManager;
    }

    public DataSetManager getDataSetManager() {
        ThreadProfile tp = Profiler.lookup().getCurrentThreadProfile();
        if (tp != null && tp.containsCodeBlockType(CoreCodeBlockTypes.CONTROLLER_REQUEST)) {
            return (DataSetManager) CDIBeanLocator.getBeanByName("sessionScopedDataSetManager");
        }
        return (DataSetManager) CDIBeanLocator.getBeanByName("appScopedDataSetManager");
    }
View Full Code Here

    protected void runWork(FactoryWork work, boolean profile) {
        boolean contextOwner = !ComponentsContextManager.isContextStarted();
        if (contextOwner) ComponentsContextManager.startContext();

        ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
        boolean profileOwner = threadProfile == null;
        if (profile && profileOwner) threadProfile = Profiler.lookup().beginThreadProfile();

        try {
            work.doWork();
View Full Code Here

    // Called by MemoryAppender

    void onAppend(LoggingEvent event) {
        // Attach the event to the current thread.
        if (ComponentsContextManager.isContextStarted()) {
            ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
            if (threadProfile != null) threadProfile.addLog4JEvent(event);
        }
        // Calculate the current throughput.
        calculateThroughput();

        // Avoid high throughput.
View Full Code Here

    protected void runWork(FactoryWork work, boolean profile) {
        boolean contextOwner = !ComponentsContextManager.isContextStarted();
        if (contextOwner) ComponentsContextManager.startContext();

        ThreadProfile threadProfile = Profiler.lookup().getCurrentThreadProfile();
        boolean profileOwner = threadProfile == null;
        if (profile && profileOwner) threadProfile = Profiler.lookup().beginThreadProfile();

        try {
            work.doWork();
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.profiler.ThreadProfile$CodeBlockEndEvent

Copyright © 2018 www.massapicom. 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.