Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(18702)

Issue 2204051: Implement stress tool for ibus.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by hkobayash
Modified:
13 years, 6 months ago
Reviewers:
yusukes, shawn.p.huang, Yusuke Sato, Peng
CC:
Peng Huang, daigoh_chromium.org, daigoh_google.com
Base URL:
git://github.com/ibus/ibus.git
Visibility:
Public.

Description

Implement stress tool for ibus. A test-stress.c sends key message each time by client. Client.h and client.c store modifier key and send key event. They check ibus-daemon and engine is alive.

Patch Set 1 #

Patch Set 2 : style fix #

Total comments: 57

Patch Set 3 : Fixed review #

Total comments: 4

Patch Set 4 : fixed review 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+612 lines, -0 lines) Patch
M bus/Makefile.am View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
A bus/test-client.h View 1 chunk +81 lines, -0 lines 0 comments Download
A bus/test-client.c View 3 1 chunk +399 lines, -0 lines 0 comments Download
A bus/test-stress.c View 1 2 3 1 chunk +116 lines, -0 lines 0 comments Download

Messages

Total messages: 13
hkobayash
13 years, 6 months ago (2010-09-27 02:53:12 UTC) #1
Yusuke Sato
Kobayashi-san, Sorry for the delay. I have checked your code and left some comments. Please ...
13 years, 6 months ago (2010-09-29 07:07:59 UTC) #2
Yusuke Sato
Forgot to cc peng... resending. On 2010/09/29 07:07:59, Yusuke Sato wrote: > Kobayashi-san, > Sorry ...
13 years, 6 months ago (2010-09-29 07:08:55 UTC) #3
Peng
It has some problem when link with gold linker. CCLD test-stress /usr/bin/ld: test_stress-client.o: in function ...
13 years, 6 months ago (2010-09-29 08:12:20 UTC) #4
Yusuke Sato
Peng, thanks for the comment. hkobayashi: Probably you have to explicitly add -lX11 in Makefile.am. ...
13 years, 6 months ago (2010-09-29 08:15:49 UTC) #5
yusukes
hkobayashi: ping? If you have any questions, feel free to ask in chat/gmail. On 2010/09/29 ...
13 years, 6 months ago (2010-09-30 08:31:27 UTC) #6
hkobayash
Yusuke-san, thank you for your mail. Now I don't have no question and a few ...
13 years, 6 months ago (2010-09-30 10:50:59 UTC) #7
hkobayash
I finished to fix review and add linker option. http://codereview.appspot.com/2204051/diff/3001/bus/client.c File bus/client.c (right): http://codereview.appspot.com/2204051/diff/3001/bus/client.c#newcode80 bus/client.c:80: ...
13 years, 6 months ago (2010-10-01 02:20:58 UTC) #8
yusukes
Thanks for the fix. http://codereview.appspot.com/2204051/diff/3001/bus/client.c File bus/client.c (right): http://codereview.appspot.com/2204051/diff/3001/bus/client.c#newcode114 bus/client.c:114: g_signal_connect (client->ibuscontext, Then, please delete ...
13 years, 6 months ago (2010-10-01 03:41:46 UTC) #9
hkobayash
Thank you for your review and fixed http://codereview.appspot.com/2204051/diff/3001/bus/client.c File bus/client.c (right): http://codereview.appspot.com/2204051/diff/3001/bus/client.c#newcode114 bus/client.c:114: g_signal_connect (client->ibuscontext, ...
13 years, 6 months ago (2010-10-01 06:15:56 UTC) #10
hkobayash
Add comment at 1 millisec sleep http://codereview.appspot.com/2204051/diff/3001/bus/test-stress.c File bus/test-stress.c (right): http://codereview.appspot.com/2204051/diff/3001/bus/test-stress.c#newcode85 bus/test-stress.c:85: _sleep(10); On 2010/10/01 ...
13 years, 6 months ago (2010-10-01 06:36:59 UTC) #11
Peng
On 2010/10/01 06:36:59, hkobayash wrote: > Add comment at 1 millisec sleep > > http://codereview.appspot.com/2204051/diff/3001/bus/test-stress.c ...
13 years, 6 months ago (2010-10-01 09:28:34 UTC) #12
yusukes
13 years, 6 months ago (2010-10-01 15:48:08 UTC) #13
submitted.
http://github.com/ibus/ibus/commit/bcfa545f0789573e805f721a953c6864f1f62a1b

On 2010/10/01 09:28:34, Shawn.P.Huang wrote:
> On 2010/10/01 06:36:59, hkobayash wrote:
> > Add comment at 1 millisec sleep
> > 
> > http://codereview.appspot.com/2204051/diff/3001/bus/test-stress.c
> > File bus/test-stress.c (right):
> > 
> > http://codereview.appspot.com/2204051/diff/3001/bus/test-stress.c#newcode85
> > bus/test-stress.c:85: _sleep(10);
> > On 2010/10/01 06:15:56, hkobayash wrote:
> > > On 2010/10/01 03:41:46, yusukes wrote:
> > > > 1 second sleep is still a problem. It slows down the test significantly.
> > > > 
> > > > I think you should send keys to ibus-daemon probably in "commit-text"
> signal
> > > > callback function like:
> > > > 
> > > > _bus_commit_text_cb() {
> > > >   if (send_key_num > ...) { gtk_main_quit(); return; }
> > > >   bus_client_send_key (...);
> > > > }
> > > > 
> > > > main() {
> > > >  ...
> > > >  gtk_main();
> > > > }
> > > > 
> > > > 
> > > > 
> > > > On 2010/10/01 02:20:58, hkobayash wrote:
> > > > > On 2010/09/29 07:08:58, Yusuke Sato wrote:
> > > > > > Please explain why we need to sleep here, and why 10.
> > > > > > I don't think 0.1 qps test is a "stress" test :)
> > > > > 
> > > > > Because test-client receive signals and call back function.
> > > > > If no sleep, do not call back function.
> > > > 
> > > 
> > > It's not 1 second sleep but 1 milliseconds.
> > 
> > If signal received, that event queues gtk event queue.
> > And call back function is dispatched in time
> 
> LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b