|  | Compressed activity log database storage
Initial draft of a policy that should reduce activity log storage
requirements.  We do a few things:
  - Strip out arguments in many cases (like before)
  - When storing identical rows for the same day, simply increment a row
    count and track the time of the latest occurrence
  - Move strings to separate tables and just use id numbers in the log
    table, so that we're not storing repeated strings many times over
The last optimization also removes the need for maintaining a table of
API names in the source code for compression.
BUG=238256 
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216424
      Total comments: 4
      
     
  
   
  
   
  
   
  
   
  
   
  
   
      Total comments: 21
      
     
  
   
  
   
  
   
    
  
  
    
      |  | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+1477 lines, -789 lines) | Patch |  
        |  | M | chrome/browser/extensions/activity_log/activity_actions.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 1 chunk | +9 lines, -1 line | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_actions.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 4 chunks | +26 lines, -59 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_database.h | View | 1 | 4 chunks | +15 lines, -6 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_database.cc | View | 1 | 1 chunk | +4 lines, -2 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_database_unittest.cc | View | 1 | 3 chunks | +24 lines, -2 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_log.cc | View | 1
        
          2 | 3 chunks | +5 lines, -4 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_log_policy.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 4 chunks | +48 lines, -18 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_log_policy.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 4 chunks | +124 lines, -5 lines | 0 comments | Download |  
        |  | A | chrome/browser/extensions/activity_log/activity_log_policy_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +102 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/activity_log_unittest.cc | View | 1
        
          2 | 1 chunk | +1 line, -1 line | 0 comments | Download |  
        |  | D | chrome/browser/extensions/activity_log/api_name_constants.h | View | 1 | 1 chunk | +0 lines, -214 lines | 0 comments | Download |  
        |  | A | chrome/browser/extensions/activity_log/counting_policy.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +100 lines, -0 lines | 0 comments | Download |  
        |  | A | chrome/browser/extensions/activity_log/counting_policy.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8
        
          9 | 1 chunk | +505 lines, -0 lines | 0 comments | Download |  
        |  | A + | chrome/browser/extensions/activity_log/counting_policy_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 13 chunks | +151 lines, -82 lines | 0 comments | Download |  
        |  | A | chrome/browser/extensions/activity_log/database_string_table.h | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +71 lines, -0 lines | 0 comments | Download |  
        |  | A | chrome/browser/extensions/activity_log/database_string_table.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +103 lines, -0 lines | 0 comments | Download |  
        |  | A | chrome/browser/extensions/activity_log/database_string_table_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +133 lines, -0 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/fullstream_ui_policy.h | View | 1 | 3 chunks | +7 lines, -5 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/fullstream_ui_policy.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 10 chunks | +23 lines, -100 lines | 0 comments | Download |  
        |  | M | chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7 | 5 chunks | +19 lines, -16 lines | 0 comments | Download |  
        |  | D | chrome/browser/extensions/activity_log/stream_noargs_ui_policy.h | View | 1
        
          2 | 1 chunk | +0 lines, -34 lines | 0 comments | Download |  
        |  | D | chrome/browser/extensions/activity_log/stream_noargs_ui_policy.cc | View | 1
        
          2 | 1 chunk | +0 lines, -63 lines | 0 comments | Download |  
        |  | D | chrome/browser/extensions/activity_log/stream_noargs_ui_policy_unittest.cc | View | 1
        
          2 | 1 chunk | +0 lines, -173 lines | 0 comments | Download |  
        |  | M | chrome/chrome_browser_extensions.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +4 lines, -3 lines | 0 comments | Download |  
        |  | M | chrome/chrome_tests_unit.gypi | View | 1
        
          2
        
          3
        
          4
        
          5
        
          6
        
          7
        
          8 | 1 chunk | +3 lines, -1 line | 0 comments | Download |  
    Total messages: 17 (0 generated)
     |