gflags

Process memory increases much faster with gflags +ust

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 02:36:55
I've got stuck in a problem with gflags when trying to find some memory leaks in a windows app. When I turn on the ust flag (in order to collect memory allocations stack traces) the memory of my application increases much faster than it does when the flag is off (it reaches to 800MB in 10 min aprox. which is far from the 50-100MB/day I get when the flag is off). I've read that there is a maximum for stack traces of 32MB, so I suppose this shouldn't be a problem. The computer is a 4x Intel(R) Xeon(R) CPU E5410 @ 2.33GHz . If someone could give me some hint I'd really appreciate it. Thank you!

How can one mark a flag as required with gflags?

安稳与你 提交于 2019-12-05 13:41:18
I use gflags like this: flags.DEFINE_string('logdir', None, 'Directory where logs are stored.') However, I would like gflags to show the help when somebody does not define --logdir . How can I make this flag required? ( This looks a bit as if it should be possible, but I couldn't find any documentation about how to use gflags with Python.) Your code should look something like this. The MarkFlagAsRequired must come before FLAGS(argv) call. def main(argv): gflags.MarkFlagAsRequired('logdir') argv = gflags.FLAGS(argv) 来源: https://stackoverflow.com/questions/37305560/how-can-one-mark-a-flag-as

gflags dialog box doesn't open

风格不统一 提交于 2019-12-05 11:23:08
I am currently trying to debug a memory leak in one of my applications (yeah, that crap again...), and trying to set gflags settings, but the dialog won't open up. I installed the Windows 10 SDK (I am on Windows 7 x64), but it said it works on Win7 as well in the description, so why can I not use it at all? If I start gflags from command line, nothing at all happens, no error, no feedback, nothing. Anybody an idea as to what might be happening on my system? According to http://www.osronline.com/showThread.CFM?link=278979 , you'll need to wait for a new version (that apparently doesn't exist as

Mojave + Xcode 10 build fails on glog config.h, gflags/gflags.h

六月ゝ 毕业季﹏ 提交于 2019-12-04 23:02:53
问题 I'm testing React Native 0.56.0-rc.2 on Mac OS Mojave and Xcode 10. Running: react-native init TestProject --version="0.56.0-rc.2" cd TestProject npm run start react-native run-ios Which generated some long errors. Entering Xcode gave me a failure on missing config.h for glog, which I found could be built manually: cd ./node_modules/react-native/third-party/glog-0.3.4 ./configure && make && make install Which passed that stage, but got me on yet another issue (...)/node_modules/react-native

Mojave + Xcode 10 build fails on glog config.h, gflags/gflags.h

扶醉桌前 提交于 2019-12-03 15:10:27
I'm testing React Native 0.56.0-rc.2 on Mac OS Mojave and Xcode 10. Running: react-native init TestProject --version="0.56.0-rc.2" cd TestProject npm run start react-native run-ios Which generated some long errors. Entering Xcode gave me a failure on missing config.h for glog, which I found could be built manually: cd ./node_modules/react-native/third-party/glog-0.3.4 ./configure && make && make install Which passed that stage, but got me on yet another issue (...)/node_modules/react-native/third-party/glog-0.3.4/src/glog/logging.h:85:10: 'gflags/gflags.h' file not found I can't find anything

I can't accurately understand how does JavaScript's method string.match(regexp)'s g flag work

 ̄綄美尐妖づ 提交于 2019-11-30 19:39:11
In the book "JavaScript: The Good Parts", it explains method string.match(regexp) as below: The match method matches a string and a regular expression. How it does this depends on the g flag. If there is no g flag, then the result of calling string .match( regexp ) is the same as calling regexp .exec( string ). However, if the regexp has the g flag, then it produces an array of all the matches but excludes the capturing groups: Then the book provides code example: var text = '<html><body bgcolor=linen><p>This is <b>bold<\/b>!<\/p><\/body><\/html>'; var tags = /[^<>]+|<(\/?)([A-Za-z]+)([^<>]*)>

I can't accurately understand how does JavaScript's method string.match(regexp)'s g flag work

本小妞迷上赌 提交于 2019-11-30 03:32:22
问题 In the book "JavaScript: The Good Parts", it explains method string.match(regexp) as below: The match method matches a string and a regular expression. How it does this depends on the g flag. If there is no g flag, then the result of calling string .match( regexp ) is the same as calling regexp .exec( string ). However, if the regexp has the g flag, then it produces an array of all the matches but excludes the capturing groups: Then the book provides code example: var text = '<html><body