Skip to content

Commit b5fbe4a

Browse files
committed
add back map for profiling
1 parent 3453621 commit b5fbe4a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

stan/math/prim/err/check_flag_sundials.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace math {
1616

1717
/**
1818
* Map cvodes error flag to acutally error msg. The most frequent
19-
* errors are put at the top. An alternative would be to use std::unordered_map
19+
* errors are put at the top. An alternative would be to use std::map
2020
* but in our case the difference would be negligible. Note that we
2121
* don't use CVGetReturnFlagName function to retrieve the constant
2222
* because sanitizer indicates it contains mem leak.

stan/math/rev/core/profiling.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class profile_info {
115115

116116
using profile_key = std::pair<std::string, std::thread::id>;
117117

118-
using profile_map = std::unordered_map<profile_key, profile_info>;
118+
using profile_map = std::map<profile_key, profile_info>;
119119

120120
/**
121121
* Profiles C++ lines where the object is in scope.

0 commit comments

Comments
 (0)