FEATURE #2389 @2h: group http request by url

This commit is contained in:
Michal Kváček
2017-03-28 00:27:31 +02:00
parent 848fa7b7cb
commit aa55ffe46a
6 changed files with 127 additions and 25 deletions
@@ -1,6 +1,11 @@
@extends('admin.layoutWithNavigation')
@section('pageHeading', trans('profiler::module.name'))
@section('pageHeading', trans('profiler::module.requestDetail'))
@section('headerButtons')
<a class="btn btn-sm rounded btn-primary" href="{{route('profiler.index')}}"><i class="fa fa-list"></i></a>
@endsection
@section('content')
@@ -17,20 +22,25 @@
<div class="row">
<ul>
<li>@lang('profiler::module.index.httpMethod'): {{$httpLog->method}}</li>
<li>@lang('profiler::module.index.url'): <a href="{{route('profiler.index', ['url' => $httpLog->url])}}">{{$httpLog->url}}</a></li>
<li>@lang('profiler::module.index.time'): {{number_format($httpLog->time, 2)}}</li>
<li>@lang('profiler::module.index.url'): <a
href="{{route('profiler.index', ['url' => $httpLog->url])}}">{{$httpLog->url}}</a>
</li>
<li>@lang('profiler::module.index.time'): {{number_format($httpLog->time, 2)}} ms</li>
<li>@lang('profiler::module.index.systemLoad'): {{$httpLog->load_1}}, {{$httpLog->load_5}}
, {{$httpLog->load_15}}</li>
</ul>
</div>
<div class="row text-center">
<div class="col-sm-3"><h3>{{count($sameRequests)}} &times;</h3> volano</div>
<div class="col-sm-3"><h3>{{number_format($times['min'], 2)}} ms</h3> min</div>
<div class="col-sm-3"><h3>{{number_format($times['max'], 2)}} ms</h3> max</div>
<div class="col-sm-3"><h3>{{number_format($times['avg'], 2)}} ms</h3> prumer</div>
<div class="col-sm-3"><h5>
{{count($sameRequests)}} &times;</h5> @lang('profiler::module.index.calledTotal')</div>
<div class="col-sm-3"><h5>{{number_format($times['min'], 2)}}
ms</h5> @lang('profiler::module.index.timeMin')</div>
<div class="col-sm-3"><h5>{{number_format($times['max'], 2)}}
ms</h5> @lang('profiler::module.index.timeMax')</div>
<div class="col-sm-3"><h5>{{number_format($times['avg'], 2)}}
ms</h5> @lang('profiler::module.index.timeAvg')</div>
</div>
</div>
</div>
</div>