-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wildcard filtering support when dump on exceptions #154
Conversation
inline WCHAR *getWCHARs(const String &src) | ||
{ | ||
size_t len = src.Length(); | ||
WCHAR* tempbuff = new WCHAR[len+1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check allocation result
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Mario! I will modify the other two and commit, but I have question for this allocation checking with the below two thoughts:
- There is no checking for other new allocations in the same file.
- The post below says seems we only need to check new allocation with no-throw
https://stackoverflow.com/questions/5197732/should-one-always-check-if-the-new-operator-worked
profiler/src/ProcDumpProfiler.cpp
Outdated
// WildcardSearch - Search string supports '*' anywhere and any number of times | ||
// | ||
//-------------------------------------------------------------------- | ||
bool WildcardSearch(WCHAR* szClassName, WCHAR* szSearch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this part of the profiler class
src/ProfilerHelpers.c
Outdated
@@ -297,9 +297,10 @@ char* GetEncodedExceptionFilter(char* exceptionFilterCmdLine, unsigned int numDu | |||
char* exceptionFilter = NULL; | |||
char* exceptionFilterCur = NULL; | |||
char tmp[10]; | |||
size_t len; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialize to 0
Add wildcard filtering support when dump on exceptions #153