-
Notifications
You must be signed in to change notification settings - Fork 19
User config and profiling #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dantleech
commented
Dec 19, 2014
- Enable setting expansion for timings
- Enableable timing for query / traversal
- Config is automatically based with dist config
$children = $currentNode->getNodes($filter ? : null); | ||
$this->time += microtime(true) - $start; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably use the stopwatch component if I do much more of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would leave it as is for now and add StopWatch if you have more cases.
af35888
to
79996c8
Compare
/** | ||
* Configuration profile object | ||
*/ | ||
class Config implements \ArrayAccess, \Iterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could it make sense to use OptionsResolver instead of this class? the cool thing about it is that you get validation and defaults handling for free.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would still need this class to represent the instance of the configuration, but yeah we could integrate the OptionResolver
tbh the current config system is still a bit messy/strange and could use a general refactor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
79996c8
to
a4ef324
Compare
- Enable setting expansion for timings - Enableable timing for query / traversal - Config is automatically based with dist config
a4ef324
to
3890629
Compare