Skip to content

Commit dcf12b4

Browse files
authored
Merge pull request #155 from bugadani/patch-1
Crox: Collect mm_profiledata files in directory
2 parents 03a352f + 4bf57b4 commit dcf12b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crox/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::path::PathBuf;
55
use std::time::{Duration, SystemTime, UNIX_EPOCH};
66

77
use analyzeme::{ProfilingData, Timestamp};
8+
use measureme::file_header::FILE_EXTENSION;
89

910
use serde::ser::SerializeSeq;
1011
use serde::{Serialize, Serializer};
@@ -219,7 +220,7 @@ fn file_prefixes_in_dir(opt: &Opt) -> Result<Vec<PathBuf>, std::io::Error> {
219220
for entry in fs::read_dir(dir_path)? {
220221
let entry = entry?;
221222
let path = entry.path();
222-
if path.extension().filter(|e| *e == "events").is_some() {
223+
if path.extension().filter(|e| *e == FILE_EXTENSION).is_some() {
223224
result.push(path)
224225
}
225226
}

0 commit comments

Comments
 (0)