0
Files
android_webview
apps
ash
base
blink
build
build_overrides
cc
chrome
chrome_elf
chromecast
chromeos
cloud_print
components
content
courgette
crypto
dbus
device
docs
extensions
gin
google_apis
google_update
gpu
headless
infra
ios
ipc
jingle
mash
media
mojo
native_client_sdk
net
pdf
ppapi
printing
remoting
rlz
sandbox
services
skia
sql
test
BUILD.gn
DEPS
OWNERS
database.cc
database.h
database_memory_dump_provider.cc
database_memory_dump_provider.h
database_unittest.cc
error_delegate_util.cc
error_delegate_util.h
init_status.h
initialization.cc
initialization.h
internal_api_token.h
meta_table.cc
meta_table.h
meta_table_unittest.cc
recovery.cc
recovery.h
recovery_unittest.cc
sql_export.h
sql_features.cc
sql_features.h
sql_memory_dump_provider.cc
sql_memory_dump_provider.h
sql_memory_dump_provider_unittest.cc
sqlite_features_unittest.cc
statement.cc
statement.h
statement_id.cc
statement_id.h
statement_id_unittest.cc
statement_unittest.cc
transaction.cc
transaction.h
transaction_unittest.cc
vfs_wrapper.cc
vfs_wrapper.h
storage
styleguide
testing
third_party
tools
ui
url
webrunner
.clang-format
.eslintrc.js
.git-blame-ignore-revs
.gitattributes
.gitignore
.gn
.vpython
AUTHORS
BUILD.gn
CODE_OF_CONDUCT.md
DEPS
ENG_REVIEW_OWNERS
LICENSE
LICENSE.chromium_os
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
PRESUBMIT_test_mocks.py
README.md
WATCHLISTS
codereview.settings
src/sql
Victor Costan 4c2f3e9227 sql: Feature flag for in-memory temporary storage.
This CL introduces SqlTempStoreMemory flag, which is intended to be
managed via Finch. When set, the flag causes sql::Database to run a
PRAGMA temp_store=MEMORY [1] query on every opened database.

This approach is intended to approximate the effect of building SQLite
with the SQLITE_TEMP_STORE=3 [2] macro, to measure the memory
consumption impact. Ideally, we'd test the macro directly, but //sql is
a core component of Chrome, so we can't load different versions of it
based on Finch.

[1] https://www.sqlite.org/pragma.html#pragma_temp_store
[2] https://www.sqlite.org/compile.html#temp_store

Bug: 875538
Change-Id: I537d90d763be1100503ed4bd2ada2ee19eb090bb
Reviewed-on: https://chromium-review.googlesource.com/1180530
Reviewed-by: Mark Pearson <mpearson@chromium.org>
Reviewed-by: Chris Mumford <cmumford@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584652}
2018-08-21 04:47:59 +00:00
..
2018-07-18 04:17:27 +00:00