File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
starlark/src/values/layout/heap/profile Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- use std:: collections:: HashMap ;
19
18
use std:: iter;
20
19
20
+ use starlark_map:: small_map:: SmallMap ;
21
+
21
22
use crate :: eval:: runtime:: profile:: csv:: CsvWriter ;
22
23
use crate :: eval:: runtime:: small_duration:: SmallDuration ;
23
24
use crate :: values:: layout:: heap:: profile:: aggregated:: AggregateHeapProfileInfo ;
@@ -31,13 +32,13 @@ struct FuncInfo {
31
32
/// Number of times this function was called
32
33
pub calls : usize ,
33
34
/// Who called this function (and how many times each)
34
- pub callers : HashMap < StringId , usize > ,
35
+ pub callers : SmallMap < StringId , usize > ,
35
36
/// Time spent directly in this function
36
37
pub time : SmallDuration ,
37
38
/// Time spent directly in this function and recursive functions.
38
39
pub time_rec : SmallDuration ,
39
40
/// Allocations made by this function
40
- pub alloc : HashMap < & ' static str , AllocCounts > ,
41
+ pub alloc : SmallMap < & ' static str , AllocCounts > ,
41
42
}
42
43
43
44
impl FuncInfo {
You can’t perform that action at this time.
0 commit comments