performance.md: indexing metrics

This commit is contained in:
Yann Cébron 2021-04-15 15:50:12 +02:00
parent f56f57ebf9
commit 0daa95bfd7

View File

@ -46,6 +46,10 @@ Usually, [`CachedValue`](upsource:///platform/core-api/src/com/intellij/psi/util
If the information you cache depends only on a subtree of the current PSI element (and nothing else: no resolve results or other files), you can cache it in a field in that `PsiElement` and drop the cache in an override of `ASTDelegatePsiElement.subtreeChanged()`.
## Improving Indexing Performance
#### Performance Metrics
Indexing performance metrics in JSON format are generated in [logs directory](https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs) (see [sandbox directory](ide_development_instance.md#the-development-instance-sandbox-directory) for development instance) in 2020.2 and later.
These are additionally available in HTML format starting with 2020.1.
#### Avoid Using AST