Skip to content

Commit

Permalink
inspect performance
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Feb 23, 2019
1 parent 0711fca commit 3d72c71
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions view/channelBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@
$rowCount = 25;
$_POST['rowCount'] = $rowCount;

$start = microtime(true);
$uploadedVideos = Video::getAllVideosAsync("a", $user_id);
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);
$uploadedTotalVideos = Video::getTotalVideos("a", $user_id);
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);

$totalPages = ceil($uploadedTotalVideos / $rowCount);

Expand Down Expand Up @@ -82,11 +77,7 @@
?>
<div class="row mainArea">
<?php
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);
createGallerySection($uploadedVideos, "", $get);
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);
?>
</div>
</div>
Expand All @@ -107,19 +98,13 @@
</div>
</div>
<?php
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);
include $global['systemRootPath'] . 'view/channelPlaylist.php';
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);
?>
</div>
<script src="<?php echo $global['webSiteRootURL']; ?>plugin/Gallery/script.js" type="text/javascript"></script>

<!--
<?php
$times[__LINE__] = microtime(true) - $start;
$start = microtime(true);
foreach ($times as $key => $value) {
echo "Line: {$key} -> {$value}\n";
}
Expand Down

0 comments on commit 3d72c71

Please sign in to comment.