Merge pull request #192 from meilisearch/bump-dependencies

Bump dependencies
This commit is contained in:
Clément Renault 2019-09-18 15:10:15 +02:00 committed by GitHub
commit 4f71219e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies] [dependencies]
byteorder = "1.3.1" byteorder = "1.3.1"
deunicode = "1.0.0" deunicode = "1.0.0"
hashbrown = "0.2.2" hashbrown = "0.6.0"
lazy_static = "1.2.0" lazy_static = "1.2.0"
log = "0.4.6" log = "0.4.6"
meilidb-tokenizer = { path = "../meilidb-tokenizer", version = "0.1.0" } meilidb-tokenizer = { path = "../meilidb-tokenizer", version = "0.1.0" }

View File

@ -14,16 +14,16 @@ csv = "1.0.7"
diskus = "0.5.0" diskus = "0.5.0"
env_logger = "0.6.1" env_logger = "0.6.1"
indexmap = { version = "1.1.0", features = ["serde-1"] } indexmap = { version = "1.1.0", features = ["serde-1"] }
jemallocator = "0.1.9" jemallocator = "0.3.2"
meilidb-core = { path = "../meilidb-core", version = "0.1.0" } meilidb-core = { path = "../meilidb-core", version = "0.1.0" }
quickcheck = "0.8.2" quickcheck = "0.9.0"
rand = "0.6.5" rand = "0.7.2"
rand_xorshift = "0.1.1" rand_xorshift = "0.2.0"
rustyline = { version = "5.0.0", default-features = false } rustyline = { version = "5.0.0", default-features = false }
serde = { version = "1.0.91" , features = ["derive"] } serde = { version = "1.0.91" , features = ["derive"] }
serde_json = "1.0.39" serde_json = "1.0.39"
structopt = "0.2.15" structopt = "0.3.2"
sysinfo = "0.8.4" sysinfo = "0.9.5"
tempfile = "3.0.7" tempfile = "3.0.7"
termcolor = "1.0.4" termcolor = "1.0.4"
toml = "0.5.3" toml = "0.5.3"

View File

@ -154,7 +154,8 @@ fn index(
// write stats // write stats
let directory_size = Walk::new(&[database_path.to_owned()], 4).run(); let directory_size = Walk::new(&[database_path.to_owned()], 4).run();
system.refresh_all(); system.refresh_all();
let memory = system.get_process(sysinfo::get_current_pid()).unwrap().memory(); // in kb let pid = sysinfo::get_current_pid()?;
let memory = system.get_process(pid).unwrap().memory(); // in kb
wtr.write_record(&[i.to_string(), directory_size.to_string(), memory.to_string()])?; wtr.write_record(&[i.to_string(), directory_size.to_string(), memory.to_string()])?;
wtr.flush()?; wtr.flush()?;
} }