Skip to content

An extra digit for runtime timing #1

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

Closed
wants to merge 1 commit into from

Conversation

dveeden
Copy link

@dveeden dveeden commented Apr 26, 2017

More precise timing

Related to:
Bug #84007 More exact timing for mysql client based on my_timer_microseconds (contribution)

@dveeden
Copy link
Author

dveeden commented Apr 26, 2017

Not sure if part_seconds was intended to configure the precision.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@dveeden
Copy link
Author

dveeden commented Apr 28, 2017

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=86135 for updates.
Thanks

nawazn pushed a commit that referenced this pull request Jul 22, 2019
This push introduces the following enhancements to the help system:
1) Adds member naming style resolution even for Doxygen generated help.
2) Adds support for <br> in shell help.
3) Replaces <code></code> for @code @Endcode

Collateral change: detected that <code> was being used in a wrong way to
create a hardcoded formatting on the Command Line integration help. Have
reformatted that help to use standard formating.

Naming Style Resolution in Doxygen
----------------------------------
Resolution of member names has been supported in the shell help by simply
enclosing the member name as <<<camelCaseMemberName>>>.

However this did not work for Doxygen and we ended adding chunks of help
defined between DOXYGEN_JS/DOXYGEN_PY whenever we wanted to refer to another
member on the help.

Now this resolution also works for Doxygen as long as it is defined in any
of the REGISTER_*HELP* macros, this is, does not work if using <<<>>> directly
in doxygen comments.

Support for <br>
----------------
This is simply handy, it will be rendered as a new line character on the
shell help.

New Code Commands
-----------------
It was detected that <code></code> were not achieving the desired effect in
the Doxygen docs (which is creating a code snippet). For this reason we have
replaced it in the shell to use @code and @Endcode commands instead.

Suggestion that whenever @code is required, the help is registered using the
new REGISTER_*HELP* macros that allow defining the entire help in a multiline
text definition, reason for this is because whatever spacing you use, it will
be rendered that way with no extra effort.

If not done that way you will have to give the desired formatting to the
text, i.e. adding new lines, using &nbsp, etc.

For examples about #1 look at the changes in mod_shell.cc
For examples about #3 the good way, look at the changes in
mod_mysqlx_collection.cc
For examples about #4 the bad way, look at the changes in mod_util.cc

Change-Id: I50e0812d86efa528abde8c690d96157c103ac66d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants