Skip to content
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

Markdown report #4

Open
GoogleCodeExporter opened this issue Dec 26, 2015 · 4 comments
Open

Markdown report #4

GoogleCodeExporter opened this issue Dec 26, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I use bat to run exe with you lib like

@echo Client sending request via Named pipes using custom objects reusing 
initialized resources
@echo -------------

Stopwatch outputs
================================================================================
==============
Tracking performance: Client process requests ~0.1kb and gets ~1kb response  of 
server process
================================================================================
==============
  *  Avg. time 4.40001e-005 sec
  *  Min. time 0 sec
  *  Max. time 0.00100017 sec
  *  Tot. time 0.0880003 sec
  *  Stops 2000

I could be could if instead of "=" just output **Tracking performance: Client 
process requests ~0.1kb and gets ~1kb response  of server process**.

So my bat but gives H2 size, you lib will give Bold, list of * is OK bullet 
list in terms of markdown.

I used many markups but this is so cool and usable.

So feature is 
sw.report_all(SW_LANG_MARKDOWN)

Either can add SW_LANG_YAML and SW_LANG_CSV.

Thanks





Original issue reported on code.google.com by [email protected] on 16 Jan 2013 at 8:16

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

## Client sending raw bytes via MS-RPC  reusing initialized resources

c:\ipc\Debug>nativeclient.exe -m rpc -d bytes -r
Client started
Request size :100 kb
Response size was :1000 kb
Request size :50 kb
Response size was :500 kb
Message size :10 kb
Response size was :100 kb
Message size :1024 bytes
Response size was :10 kb
Message size :102 bytes
Response size was :1024 bytes
Request size :100 kb
Response size was :1000 kb
Request size :50 kb
Response size was :500 kb
Message size :10 kb
Response size was :100 kb
Message size :1024 bytes
Response size was :10 kb
Message size :102 bytes
Response size was :1024 bytes

**Client process requests ~100kb and gets ~1000kb response of server process**

  *  Avg. time 0.00370047 sec
  *  Min. time 0.00300002 sec
  *  Max. time 0.00400162 sec
  *  Tot. time 0.0370047 sec
  *  Stops 10

Original comment by [email protected] on 25 Jan 2013 at 9:09

@GoogleCodeExporter
Copy link
Author

    if (lang == StopwatchReportLang::MARKDOWN){


    output << std::endl;
    output << "**" << perf_name << "**" << std::endl;
    output << std::endl;
    output << "  *  Avg. time " << (perf_info.total_time / (long double) perf_info.stops) << " sec" << std::endl;
    output << "  *  Min. time " << (perf_info.min_time) << " sec" << std::endl;
    output << "  *  Max. time " << (perf_info.max_time) << " sec" << std::endl;
    output << "  *  Tot. time " << (perf_info.total_time) << " sec" << std::endl;

    ostringstream stops;
    stops << perf_info.stops;

    output << "  *  Stops " << stops.str() << std::endl;
    output << std::endl;
    }

Original comment by [email protected] on 25 Jan 2013 at 9:10

@GoogleCodeExporter
Copy link
Author

stopwatch.set_lang(StopwatchReportLang::MARKDOWN);

Original comment by [email protected] on 25 Jan 2013 at 9:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant