mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
Prettified Code!
This commit is contained in:
committed by
GitHub Action
parent
cb5d59fd0b
commit
5e71a45f0e
+3
-4
@@ -14,8 +14,8 @@
|
||||
|
||||
## 注意事项
|
||||
|
||||
* tt 命令的实现是:把函数的入参/返回值等,保存到一个`Map<Integer, TimeFragment>`里,默认的大小是 100。
|
||||
* tt 相关功能在使用完之后,需要手动释放内存,否则长时间可能导致OOM。退出 arthas 不会自动清除 tt 的缓存 map。
|
||||
- tt 命令的实现是:把函数的入参/返回值等,保存到一个`Map<Integer, TimeFragment>`里,默认的大小是 100。
|
||||
- tt 相关功能在使用完之后,需要手动释放内存,否则长时间可能导致OOM。退出 arthas 不会自动清除 tt 的缓存 map。
|
||||
|
||||
## 使用参考
|
||||
|
||||
@@ -244,7 +244,6 @@ Affect(class count: 1 , method count: 1) cost in 56 ms, listenerId: 1
|
||||
|
||||
需要强调的是,`tt` 命令是将当前环境的对象引用保存起来,但仅仅也只能保存一个引用而已。如果方法内部对入参进行了变更,或者返回的对象经过了后续的处理,那么在 `tt` 查看的时候将无法看到当时最准确的值。这也是为什么 `watch` 命令存在的意义。
|
||||
|
||||
|
||||
### 通过索引删除指定的 tt 记录
|
||||
|
||||
```
|
||||
@@ -255,4 +254,4 @@ tt -d 1001
|
||||
|
||||
```
|
||||
tt --delete-all
|
||||
```
|
||||
```
|
||||
|
||||
@@ -12,8 +12,8 @@ With the help of `tt` (_TimeTunnel_), you can check the contexts of the methods
|
||||
|
||||
## Precautions
|
||||
|
||||
* The implementation of the tt command is to save the input parameters/return values of the function into a `Map<Integer, TimeFragment>`. The default size is 100.
|
||||
* After using tt related functions, you need to manually release the memory, otherwise OOM may occur for a long time. Exiting arthas will not automatically clear tt's cache map.
|
||||
- The implementation of the tt command is to save the input parameters/return values of the function into a `Map<Integer, TimeFragment>`. The default size is 100.
|
||||
- After using tt related functions, you need to manually release the memory, otherwise OOM may occur for a long time. Exiting arthas will not automatically clear tt's cache map.
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -226,4 +226,4 @@ tt -d 1001
|
||||
|
||||
```
|
||||
tt --delete-all
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user