private void mergeProfiles(JSOArray<JavaScriptProfile> profiles) {
JavaScriptProfile profile = new JavaScriptProfile();
for (int i = 0, length = profiles.size(); i < length; ++i) {
profile.merge(profiles.get(i));
}
Container resultsContainer = new DefaultContainerImpl(resultsDiv);
ScopeBar bar = new ScopeBar(resultsContainer, resources);
listenerOwner.removeAllEventListeners();
JavaScriptProfileRenderer renderer = new JavaScriptProfileRenderer(
resultsContainer, resources, listenerOwner,