FEATURE #2389 @2h: add request detail into profiler

This commit is contained in:
Michal Kváček
2017-03-24 01:28:21 +01:00
parent 52e02d67c6
commit 05c9e56973
11 changed files with 273 additions and 90 deletions
@@ -4,34 +4,12 @@
@section('content')
<table class="table stripped">
<thead>
<tr>
<td>@lang('profiler::module.index.createdAt')</td>
<td>@lang('profiler::module.index.httpMethod')</td>
<td>@lang('profiler::module.index.url')</td>
<td>@lang('profiler::module.index.time')</td>
<td>@lang('profiler::module.index.systemLoad')</td>
<td></td>
</tr>
</thead>
<tbody>
@foreach($httpLog as $request)
<tr>
<td>{{$request->created_at->format('d.m.Y G:i')}}</td>
<td>{{$request->method}}</td>
<td>{{$request->url}}</td>
<td>{{number_format($request->time, 3)}} ms</td>
<td>{{$request->load_1}}, {{$request->load_5}}, {{$request->load_15}}</td>
<td>
<a href="{{route('queries.index', ['httpLog' => $request])}}">SQL</a>
</td>
</tr>
@endforeach
</tbody>
</table>
{!! $httpLog->render() !!}
<div class="card">
<div class="card-block">
@include('profiler::_partials.requestList', ['requests' => $httpLog])
</div>
<div class="card-footer">
{!! $httpLog->render() !!}
</div>
</div>
@stop