Commits

Stefan Saasen committed 5f81439

Remove the StopWatch from the SinatraAdapterServlet.

Comments (0)

Files changed (1)

src/main/java/com/atlassian/plugins/polyglot/jrubyexample/servlet/SinatraAdapterServlet.java

         this.servletConfig = config;
         servletName = StringUtils.defaultString(config.getInitParameter("servletName"), "");
 
-        final StopWatch stopWatch = new StopWatch();
-        stopWatch.start("Initialization - getScriptingContainer");
         container = containerProvider.getScriptingContainer();
-        stopWatch.stop();
-
-        stopWatch.start("Require RubyGems");
         container.runScriptlet("require 'rubygems'");
-        stopWatch.stop();
 
         // parse closes the InputStream!
-        stopWatch.start("Parse servlet_handler.rb");
         rackServletHandler = container.parse(PathType.CLASSPATH, "/jruby_integration/rack_servlet_handler.rb");
-        stopWatch.stop();
 
-        stopWatch.start("Include resources");
         Writer sw = new StringWriter();
         webResourceManager.includeResources(Collections.singletonList("com.atlassian.example.jrubyplugin:jruby-plugin-resources"), sw, UrlMode.AUTO);
         webResourceTags = sw.toString();
-        stopWatch.stop();
-
-        log.debug("Stopwatch: {}", stopWatch.prettyPrint());
     }