Comments (11)
1,应该不会求值,glog里面我记得有判断。如果还是求值了应该是bug。
2,是的,本身是一个针对glog的wrapper,内部有些脚本依赖glog的格式,而且实践中也够用,所以就没有自己搞一套独立的了。blade编译出来改了rpath,比较简单的办法是去build64_xxx/path/to/xxx_test.runfiles下面运行。
from flare.
1,应该不会求值,glog里面我记得有判断。如果还是求值了应该是bug。
2,是的,本身是一个针对glog的wrapper,内部有些脚本依赖glog的格式,而且实践中也够用,所以就没有自己搞一套独立的了。blade编译出来改了rpath,比较简单的办法是去build64_xxx/path/to/xxx_test.runfiles下面运行。
- 我尝试过了, 确实是会去执行这个函数, 可以看一下 google/glog#463
所以我们要不要优化这点 - 好的
from flare.
1,应该不会求值,glog里面我记得有判断。如果还是求值了应该是bug。
2,是的,本身是一个针对glog的wrapper,内部有些脚本依赖glog的格式,而且实践中也够用,所以就没有自己搞一套独立的了。blade编译出来改了rpath,比较简单的办法是去build64_xxx/path/to/xxx_test.runfiles下面运行。
glog的LOG(XX)系列是先构造完LOGMessage再去判断的日志等级, VLOG是先判断日志等级再去构造Message
from flare.
应该是我记错了(或者内部的魔改过)。
这儿确实值得处理下,不然尤其是debug级别的日志,始终求值对用户不太友好,可能需要删了加加了删。
感觉可以用if (log enabled)套一层之类的。
from flare.
应该是我记错了(或者内部的魔改过)。
这儿确实值得处理下,不然尤其是debug级别的日志,始终求值对用户不太友好,可能需要删了加加了删。
感觉可以用if (log enabled)套一层之类的。
感觉
#define FLARE_LOG_INFO(...) \
if (GLOG_INFO >= GFLAGS_minloglevel)
LOG(INFO) << ::flare::internal::logging::FormatLog(__FILE__, __LINE__, \
__VA_ARGS__)
或者直接用LOG_IF也可以
#define FLARE_LOG_INFO(...) \
LOG_IF(INFO, GLOG_INFO >= GFLAGS_minloglevel)
<< ::flare::internal::logging::FormatLog(__FILE__, __LINE__, \
__VA_ARGS__)
from flare.
应该是我记错了(或者内部的魔改过)。
这儿确实值得处理下,不然尤其是debug级别的日志,始终求值对用户不太友好,可能需要删了加加了删。
感觉可以用if (log enabled)套一层之类的。
debug级别日志指DLOG()系列吗? 这个倒还好, 如果在Release模式下, DLOG直接展开为空, 不会去求值
from flare.
迷糊了,想着还有个LOG_DEBUG这种级别去了……
那现在这样我觉得倒没什么,正常的代码里面INFO/+的日志也不会很多,感觉优化必要不大
from flare.
迷糊了,想着还有个LOG_DEBUG这种级别去了……
那现在这样我觉得倒没什么,正常的代码里面INFO/+的日志也不会很多,感觉优化必要不大
OK
from flare.
2,是的,本身是一个针对glog的wrapper,内部有些脚本依赖glog的格式,而且实践中也够用,所以就没有自己搞一套独立的了。blade编译出来改了rpath,比较简单的办法是去build64_xxx/path/to/xxx_test.runfiles下面运行。
如果我要运行flare/base/internal/logging_test
, 要倒flare/base/internal/logging_test.runfiles
下面执行../logging_test
?
from flare.
LD_LIBRARY_PATH到.(当前目录)应该可以
from flare.
LD_LIBRARY_PATH到.(当前目录)应该可以
嗯嗯, 在flare目录下, 也可以export LD_LIBRARY_PATH=./build64_release/flare/base/internal/logging_test.runfiles/
去运行./blade-bin/flare/base/internal/logging_test
from flare.
Related Issues (20)
- Http header data structure HOT 13
- Rpc: Http parse HOT 5
- 针对K8s容器环境是否有需要注意的优化配置呢 HOT 2
- clang-format HOT 15
- update blade HOT 9
- if have any plan to support bazel HOT 1
- bazel build ... 失败 HOT 6
- 请问有合适的源码阅读顺序吗 HOT 5
- 对GetFreeCount的取值比较困惑 HOT 5
- Does the server example in the flare example support 1 thread start? HOT 4
- clang-17 asan/tsan fiber coredump
- 关于Function类的疑问 HOT 2
- 问一个非常诡异的用例 HOT 10
- 关于调度参数的疑问 HOT 1
- 编译时间太长 HOT 4
- 调试相关 HOT 3
- Fiber scheduling takes too long HOT 3
- 为什么侵入式的链表采用的是组合而不是继承? HOT 5
- 使用`getaddrinfo`会不会更好一点 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flare.