Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
d9570769
Commit
d9570769
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Update xcache and xtrigger info pages
parent
658911b8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/admin/system/xcache.php
+14
-4
14 additions, 4 deletions
htdocs/admin/system/xcache.php
htdocs/admin/system/xdebug.php
+58
-51
58 additions, 51 deletions
htdocs/admin/system/xdebug.php
with
72 additions
and
55 deletions
htdocs/admin/system/xcache.php
+
14
−
4
View file @
d9570769
<?php
/* Copyright (C) 2009 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2009
-2012
Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -24,8 +24,7 @@ require("../../main.inc.php");
$langs
->
load
(
"admin"
);
if
(
!
$user
->
admin
)
accessforbidden
();
if
(
!
$user
->
admin
)
accessforbidden
();
$action
=
GETPOST
(
'action'
);
...
...
@@ -49,8 +48,17 @@ if (!function_exists('xcache_info'))
}
print
'Opcode cache XCache is on<br>'
.
"
\n
"
;
print
'Opcode cache XCache is on<br>
<br>
'
.
"
\n
\n
"
;
print
$langs
->
trans
(
"Split"
)
.
': '
.
ini_get
(
'xcache.count'
)
.
' '
.
$langs
->
trans
(
"Recommanded"
)
.
': (cat /proc/cpuinfo | grep -c processor) + 1<br>'
.
"
\n
"
;
print
$langs
->
trans
(
"Size"
)
.
': '
.
ini_get
(
'xcache.size'
)
.
' '
.
$langs
->
trans
(
"Recommanded"
)
.
': 16*Split<br>'
.
"
\n
"
;
print
$langs
->
trans
(
"xcache.cacher"
)
.
': '
.
yn
(
ini_get
(
'xcache.cacher'
))
.
'<br>'
.
"
\n
"
;
print
$langs
->
trans
(
"xcache.optimizer"
)
.
': '
.
yn
(
ini_get
(
'xcache.optimizer'
))
.
' (will be usefull only with xcache v2)<br>'
.
"
\n
"
;
print
$langs
->
trans
(
"xcache.stat"
)
.
': '
.
yn
(
ini_get
(
'xcache.stat'
))
.
'<br>'
.
"
\n
"
;
print
$langs
->
trans
(
"xcache.coverager"
)
.
': '
.
yn
(
ini_get
(
'xcache.coverager'
))
.
'<br>'
.
"
\n
"
;
//print xcache_get();
/*
$cacheinfos = array();
for ($i = 0; $i < 10; $i ++)
...
...
@@ -69,4 +77,6 @@ if ($action == 'clear')
*/
llxFooter
();
$db
->
close
();
?>
This diff is collapsed.
Click to expand it.
htdocs/admin/system/xdebug.php
+
58
−
51
View file @
d9570769
<?php
/* Copyright (C) 2009 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2009
-2012
Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -72,10 +72,16 @@ if (function_exists('socket_create'))
xdebug.remote_handle=dbgp<br>
xdebug.remote_host=localhost<br>
xdebug.remote_port=9000<br>
xdebug.profiler_enable=1<br>
xdebug.profiler_enable=0<br>
xdebug.profiler_enable_trigger=1<br>
xdebug.show_local_vars=off<br>
xdebug.profiler_output_dir=/tmp/xdebug<br>
xdebug.profiler_append=0<br>
<br>
xdebug.trace_enable_trigger=1<br>
xdebug.show_mem_delta=1<br>
xdebug.trace_output_dir=/tmp/trace<br>
xdebug.auto_trace=0<br>
'
.
"
\n
"
;
print
"<br>
\n
"
;
echo
'Then check in your debug server (Eclipse), you have setup:<br>
...
...
@@ -90,7 +96,6 @@ if (function_exists('socket_create'))
echo
"Failed to connect to address="
.
$address
.
" port="
.
$port
.
"<br>
\n
"
;
echo
"There is no Remote debug server at this address.
\n
"
;
}
socket_close
(
$client
);
socket_close
(
$socket
);
}
else
...
...
@@ -100,4 +105,6 @@ else
llxFooter
();
$db
->
close
();
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment