Skip to content

Commit

Permalink
Not existed root dir bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroidInternal committed Aug 10, 2020
1 parent abbcb5c commit 8164b58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You just need to init KOOM, and it will take care of other things for you. Adva

```gradle
dependencies {
implementation 'com.kwai.koom:java-oom:1.0.0'
implementation 'com.kwai.koom:java-oom:1.0.3'
}
```

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ KOOM(Kwai OOM, Kill OOM)是快手性能优化团队在处理移动端OOM问题

```gradle
dependencies {
implementation 'com.kwai.koom:java-oom:1.0.0'
implementation 'com.kwai.koom:java-oom:1.0.3'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public KConfigBuilder() {
this.heapPollInterval = KConstants.HeapThreshold.POLL_INTERVAL;
this.rootDir = KGlobalConfig.getApplication().getCacheDir()
.getAbsolutePath() + File.separator + KOOM_DIR;
File dir = new File(rootDir);
if (!dir.exists()) dir.mkdirs();
this.processName = KGlobalConfig.getApplication().getPackageName();
}

Expand Down

0 comments on commit 8164b58

Please sign in to comment.