mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Misc
parent
fbd115776a
commit
196c996fd2
@ -122,6 +122,20 @@ When `ccls` indexes `/tmp/host/proj/a.cc`, the cache file
|
|||||||
(re-indexed), the newly generated `a.cc.blob` will not contain
|
(re-indexed), the newly generated `a.cc.blob` will not contain
|
||||||
`/tmp/container` paths any more.
|
`/tmp/container` paths any more.
|
||||||
|
|
||||||
|
#### `cache.retainInMemory`
|
||||||
|
|
||||||
|
Default: 1
|
||||||
|
|
||||||
|
Change to 0 if you want to save memory, but having multiple ccls processes operating in the same directory may corrupt ccls's in-memory representation of the index.
|
||||||
|
|
||||||
|
After this number of loads, keep a copy of file index in memory (which
|
||||||
|
increases memory usage). During incremental updates, the removed file
|
||||||
|
index will be taken from the in-memory copy, instead of the on-disk file.
|
||||||
|
|
||||||
|
Every index action is counted: the initial load, a save action.
|
||||||
|
0: never retain; 1: retain after initial load; 2: retain after 2 loads
|
||||||
|
(initial load+first save)
|
||||||
|
|
||||||
#### `clang.resourceDir`
|
#### `clang.resourceDir`
|
||||||
|
|
||||||
Default: _empty_
|
Default: _empty_
|
||||||
|
@ -6,6 +6,8 @@ First of all, use a [`Debug` build](Build#cmake-options). It is compiled with
|
|||||||
Enable [logging](Customization#--log-filefile----log-file-appendfile) and
|
Enable [logging](Customization#--log-filefile----log-file-appendfile) and
|
||||||
[verbose](Customization#-vn) mode when starting the server.
|
[verbose](Customization#-vn) mode when starting the server.
|
||||||
|
|
||||||
|
`-log-file=/tmp/ccls.log -v=1`
|
||||||
|
|
||||||
### stderr
|
### stderr
|
||||||
|
|
||||||
You can find stderr output in:
|
You can find stderr output in:
|
||||||
|
Loading…
Reference in New Issue
Block a user