Skip to content

Commit

Permalink
Crox: Collect mm_profiledata files in directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Mar 4, 2021
1 parent 03a352f commit 4bf57b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crox/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::path::PathBuf;
use std::time::{Duration, SystemTime, UNIX_EPOCH};

use analyzeme::{ProfilingData, Timestamp};
use measureme::file_header::FILE_EXTENSION;

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

0 comments on commit 4bf57b4

Please sign in to comment.