samply-api 0.24.0

JSON API for querying symbol information, uses samply-symbols.
Documentation
1
2
3
4
5
6
7
8
use samply_symbols::SourceFilePath;

pub fn to_api_file_path(file_path: &SourceFilePath) -> String {
    match file_path.mapped_path() {
        Some(mapped_path) => mapped_path.to_special_path_str(),
        None => file_path.raw_path().to_owned(),
    }
}