Skip to content

Commit 7adedec

Browse files
author
epriestley
committed
XHProf: add .arclint, fix some minor issues
Summary: Add a .arclint file and fix some stray tabs and whitespace issues. Test Plan: Built xhprof, ran tests (some failures, but preexisting). Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D10372
1 parent 28d18dd commit 7adedec

File tree

12 files changed

+39
-11
lines changed

12 files changed

+39
-11
lines changed

.arclint

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"exclude": [
3+
"(^xhprof_html/jquery/)",
4+
"(^xhprof_html/docs/)",
5+
"(^extension/Makefile.local)"
6+
],
7+
"linters": {
8+
"chmod": {
9+
"type": "chmod"
10+
},
11+
"filename": {
12+
"type": "filename"
13+
},
14+
"generated": {
15+
"type": "generated"
16+
},
17+
"merge-conflict": {
18+
"type": "merge-conflict"
19+
},
20+
"nolint": {
21+
"type": "nolint"
22+
},
23+
"text-without-length": {
24+
"type": "text",
25+
"severity": {
26+
"3": "disabled"
27+
}
28+
}
29+
}
30+
}

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ extension/*
44
!extension/php_xhprof.h
55
!extension/tests/
66
!extension/xhprof.c
7+
8+
extension/tests/*.sh
9+
extension/tests/*.exp
10+
extension/tests/*.out
11+
extension/tests/*.diff
12+
extension/tests/*.log
13+
extension/tests/*.php

LICENSE

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/

README

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ For installation and usage notes refer to:
33

44
To view the latest version of the doc, go to:
55
http://pecl.php.net/package/xhprof ---> [View Documentation]
6-
7-

extension/config.m4

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
PHP_ARG_ENABLE(xhprof, whether to enable xhprof support,
32
[ --enable-xhprof Enable xhprof support])
43

extension/php_xhprof.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ PHP_FUNCTION(xhprof_disable);
4242
PHP_FUNCTION(xhprof_sample_enable);
4343
PHP_FUNCTION(xhprof_sample_disable);
4444

45-
#endif /* PHP_XHPROF_H */
45+
#endif /* PHP_XHPROF_H */

extension/tests/common.php

-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ function print_canonical($xhprof_data) {
3232
echo "\n";
3333
}
3434
}
35-

extension/xhprof.c

-1
Original file line numberDiff line numberDiff line change
@@ -2016,4 +2016,3 @@ static inline void hp_array_del(char **name_array) {
20162016
efree(name_array);
20172017
}
20182018
}
2019-

xhprof_html/css/xhprof.css

-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,3 @@ ul.xhprof_actions li a:hover {
7979
background:#3B5998 none repeat scroll 0 0;
8080
color:#FFFFFF;
8181
}
82-

xhprof_lib/display/typeahead_common.php

-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@
7777
foreach ($functions as $f) {
7878
echo $f."\n";
7979
}
80-

xhprof_lib/display/xhprof.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ function print_pc_array($url_params, $results, $base_ct, $base_info, $parent,
10031003

10041004
function print_source_link($info) {
10051005
if (strncmp($info['fn'], 'run_init', 8) && $info['fn'] !== 'main()') {
1006-
if (defined('XHPROF_SYMBOL_LOOKUP_URL')) {
1006+
if (defined('XHPROF_SYMBOL_LOOKUP_URL')) {
10071007
$link = xhprof_render_link(
10081008
'source',
10091009
XHPROF_SYMBOL_LOOKUP_URL . '?symbol='.rawurlencode($info["fn"]));

xhprof_lib/utils/xhprof_lib.php

-1
Original file line numberDiff line numberDiff line change
@@ -943,4 +943,3 @@ function xhprof_get_matching_functions($q, $xhprof_data) {
943943

944944
return ($res);
945945
}
946-

0 commit comments

Comments
 (0)