Skip to content
Permalink
Browse files
[JENKINS-4769] Memory consumption is huge
- Report is cached at report details pages.
  • Loading branch information
mixalturek committed Dec 29, 2013
1 parent bcbe5da commit e4050c883f0604d14fb3f6dd8ea9bffe119ef858
Showing 3 changed files with 12 additions and 9 deletions.
@@ -10,8 +10,9 @@
<td class="pane-header" style="width:60%">${%Distribution}</td>
</tr>
<tbody>
<j:set var="max" value="${it.report.longestFile.lineCount}"/>
<j:forEach var="container" items="${it.report.files}">
<j:set var="cachedReport" value="${it.report}"/>
<j:set var="max" value="${cachedReport.longestFile.lineCount}"/>
<j:forEach var="container" items="${cachedReport.files}">
<tr>
<td class="pane">${container.name}</td>
<td class="pane">${container.language}</td>
@@ -23,7 +24,7 @@
<tr class="sortbottom">
<td class="pane-header">${%Total}</td>
<td class="pane-header"> </td>
<td class="pane-header number" data="${it.report.lineCount}">${it.report.lineCountString}</td>
<td class="pane-header number" data="${cachedReport.lineCount}">${cachedReport.lineCountString}</td>
<td class="pane-header"> </td>
</tr>
</tfoot>
@@ -10,8 +10,9 @@
<td class="pane-header" style="width:60%">${%Distribution}</td>
</tr>
<tbody>
<j:set var="max" value="${it.report.longestFolder.lineCount}"/>
<j:forEach var="container" items="${it.report.folders}">
<j:set var="cachedReport" value="${it.report}"/>
<j:set var="max" value="${cachedReport.longestFolder.lineCount}"/>
<j:forEach var="container" items="${cachedReport.folders}">
<tr>
<td class="pane"><a href="folderResult/${container.urlName}">${container.name}</a></td>
<td class="pane number" data="${container.fileCount}">${container.fileCountString}</td>
@@ -23,7 +24,7 @@
<tr class="sortbottom">
<td class="pane-header">${%Total}</td>
<td class="pane-header"> </td>
<td class="pane-header number" data="${it.report.lineCount}">${it.report.lineCountString}</td>
<td class="pane-header number" data="${cachedReport.lineCount}">${cachedReport.lineCountString}</td>
<td class="pane-header"> </td>
</tr>
</tfoot>
@@ -10,8 +10,9 @@
<td class="pane-header" style="width:60%">${%Distribution}</td>
</tr>
<tbody>
<j:set var="max" value="${it.report.longestLanguage.lineCount}"/>
<j:forEach var="container" items="${it.report.languages}">
<j:set var="cachedReport" value="${it.report}"/>
<j:set var="max" value="${cachedReport.longestLanguage.lineCount}"/>
<j:forEach var="container" items="${cachedReport.languages}">
<tr>
<td class="pane"><a href="languageResult/${container.name}">${container.name}</a></td>
<td class="pane number" data="${container.fileCount}">${container.fileCountString}</td>
@@ -23,7 +24,7 @@
<tr class="sortbottom">
<td class="pane-header">${%Total}</td>
<td class="pane-header"> </td>
<td class="pane-header number" data="${it.report.lineCount}">${it.report.lineCountString}</td>
<td class="pane-header number" data="${cachedReport.lineCount}">${cachedReport.lineCountString}</td>
<td class="pane-header"> </td>
</tr>
</tfoot>

0 comments on commit e4050c8

Please sign in to comment.