Skip to content

Commit f541454

Browse files
author
liply
committed
add Params
1 parent 3249cb8 commit f541454

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plugins/Debug_ReportMemory.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@
1010
* reservedCount: count of reserved Bitmaps
1111
*
1212
* All number should be stable.
13-
* If you find that It increases gradually, Please report to team!!
13+
* If you find that It increases gradually after reaching limit, Please report to team!!
14+
*
15+
* @param Max Pixels In MPix
16+
* @default 20
1417
*
1518
*/
1619

1720
(function(){
21+
var parameters = PluginManager.parameters('Debug_ReportMemory');
22+
var pixels = +parameters['Max Pixels In MPix'] || 20;
23+
24+
ImageCache.limit = pixels * 1024 * 1024;
25+
1826
var div = document.createElement('div');
1927
div.style.backgroundColor = 'AliceBlue';
2028
div.style.position = 'fixed';

0 commit comments

Comments
 (0)