Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d2baf5ce authored by Kim Sungyeon's avatar Kim Sungyeon Committed by Lajos Molnar
Browse files

VT: Traffic recorder renewal



1. Switch head & tail definition to prevent confusing

HeadIdx_(n+1) = (HeadIdx_(n) + 1) mod Sizeof(RingBuffer)

X = filled index
O = vacant index
                                           head
          O O O X head                 O O X X
        O         X                  O         X
       O           X     write      O           X
       O           X     ----->     O           X
        O         X                  O         X
          O X X X                      O X X X
        tail                          tail

2. Preserve data when print information.
   The recorder keeps data as possible as it can.
   (Current recorder keeps data for 2000ms)

3. Limit traffic recorder size between 4 and 1024 entries.

Bug: 171688417

Change-Id: I7502f09f31d841b04a5d29efb7bb1b904059b3c7
Signed-off-by: default avatarKim Sungyeon <sy85.kim@samsung.com>
parent e27532aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment