forked from corretge/xdebug-trace-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
noutrace.php
51 lines (41 loc) · 1.81 KB
/
noutrace.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Xdebug Trace File Parser<?php if(isset($_GET['file'])) echo ' - ' . htmlentities ($_GET['file']); ?></title>
<LINK href="trace.css" rel="stylesheet" type="text/css">
<!-- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> -->
</head>
<body>
<?php
require 'noutrace.class.php';
$xdb = new noutrace();
$xdb->setParams();
?>
<h1>Xdebug Trace File Parser</h1>
<h2>Settings <?php echo $xdb->logDirectory ?> (<?php echo $xdb->traceFormat ?>)</h2>
<form method="get" action="noutrace.php">
<label>File
<select name="file">
<option value=""> -- Select -- </option>
<?php echo $xdb->rtvFiles(); ?>
</select>
</label>
<label>Filter only one instruction <input type="text" name="onlyOneInstruction" value="<?php echo $xdb->onlyOneInstruction ?>" size="40"/> </label>
<label>Filter by script file <input type="text" name="onlyOneScript" value="<?php echo $xdb->onlyOneScript ?>" size="40"/> </label>
<!-- <label>If the memory jumps <input type="text" name="memory" value="<?php echo $xdb->memoryAlarm ?>" style="text-align:right" size="5"/> MB, provide an alert</label>
<label>If the execution time jumps <input type="text" name="time" value="<?php echo $xdb->timeAlarm ?>" style="text-align:right" size="5"/> seconds, provide an alert</label>-->
<input type="submit" value="parse" />
</form>
<?php
if (empty($_GET['file']))
{
exit;
}
echo "<h2>Output {$xdb->file}</h2>";
echo number_format($xdb->filesize, 0) . " bytes <br />";
//$xdb->debugMem(__LINE__);
$xdb->trace();
//$xdb->debugMem(__LINE__);
?>
</body>
</html>