Skip to content

Commit

Permalink
Changed default configuration and simplified demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Knap committed Oct 3, 2016
1 parent 152ad26 commit f97f188
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -82,7 +82,7 @@ profiler:
createService: false # or true
bar:
show:
memoryUsageChart: false # or true
memoryUsageChart: true # or false
shortProfiles: true # or false
```

Expand All @@ -98,7 +98,7 @@ tracy_wrap(function() {
/* your code goes here */
}, [new TracyBarAdapter([
"show" => [
"memoryUsageChart" => false, // or true
"memoryUsageChart" => true, // or false
"shortProfiles" => true // or false
]
])]);
Expand Down
6 changes: 1 addition & 5 deletions demo/lumen/index.php
Expand Up @@ -31,8 +31,4 @@
$app->run();

Profiler::finish(/* keep default label for better preview */);
}, [new TracyBarAdapter([
TracyBarAdapter::CONFIG_SHOW => [
TracyBarAdapter::CONFIG_SHOW_MEMORY_USAGE_CHART => true
]
])]);
}, [new TracyBarAdapter()]);
4 changes: 0 additions & 4 deletions demo/nette/config/config.neon
Expand Up @@ -4,10 +4,6 @@ extensions:
profiler:
profile:
createService: true
bar:
show:
memoryUsageChart: true
shortProfiles: true

application:
scanDirs: false
Expand Down
4 changes: 2 additions & 2 deletions src/Profiler/Adapter/TracyBarAdapter.php
Expand Up @@ -33,8 +33,8 @@ public static function getDefaultConfig()
{
return [
self::CONFIG_SHOW => [
self::CONFIG_SHOW_MEMORY_USAGE_CHART => false,
self::CONFIG_SHOW_SHORT_PROFILES => false
self::CONFIG_SHOW_MEMORY_USAGE_CHART => true,
self::CONFIG_SHOW_SHORT_PROFILES => true
]
];
}
Expand Down

0 comments on commit f97f188

Please sign in to comment.