| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
/cc @jasongin @nodejs/diagnostics @nodejs/v8 I'm happy to remove the copy and directly include it from deps if you want. |
Sorry, something went wrong.
|
LGTM, certainly an improvement, though I don't know if it's the best approach. @ofrobots do you know why trace_event_common.h was originally added at deps\v8\trace_event\common rather than deps\v8\include? If it was in the latter location then it would be easier to just #include in trace_event.h here. Ideally @matthewloring should also comment on this, but I don't know when he is going to be back at work. |
Sorry, something went wrong.
|
IIRC it was quite intentional that @matthewloring did not directly include trace_event_common.h – but the details escape me. Perhaps @fmeawad knows too. Matt should be back mid next week, he has the full context here. Perhaps we can go with #10623 as the workaround for now and figure out a longer-term solution (this PR or otherwise) once @matthewloring is back. |
Sorry, something went wrong.
|
#10623 is not a workaround for this issue, it is just a fix for a separate tracing-related bug. |
Sorry, something went wrong.
|
Ah sorry, I misunderstood. In that case the work-around might be to copy over the necessary changes from trace_event_common.h in order to unblock #9618? @targos, I can put that together if you want, but it might be simpler for you to add the changes in #9618. |
Sorry, something went wrong.
|
This change is definitely a step in the right direction. The reason I did not depend on the file directly was to avoid a dependency on a directory outside of deps/v8/include. IIRC the file was put outside of deps/v8/include because it was originally copied from Chromium but @fmeawad would have more context. |
Sorry, something went wrong.
|
V8 includes trace_event_common.h here with #include "base/trace_event/common/trace_event_common.h", which relies on the upstream src/base/trace_event/common repo in Chromium here. @ofrobots @fmeawad would it be a good idea for Node to include the "trace_event_common" repo from Chromium directly under deps here in Node, rather than copy the file to deps/v8 as currently? And long term should we rely on one of these upstreams or our own fork as in #9304 and here? |
Sorry, something went wrong.
|
Conclusion in discussion in Diag WG meeting today is that Node should manage its copy of the trace_event headers however we see fit and not worry about upstream Chromium. V8/Google plan to provide a proper tracing library eventually and when that's ready we can sync with it upstream. |
Sorry, something went wrong.
|
@joshgav thanks. Does it mean that we should go on with this PR? |
Sorry, something went wrong.
Currently, trace_event.h contains a full copy of the header present in deps/v8/base/trace_event/common/trace_event_common.h mixed with implementation-specific macros. This patch moves the V8 code to its own file and includes it from trace_event.h. The header is also updated to the latest version from V8 5.6.
|
Rebased and updated to the latest version from V8 5.6. src/tracing/trace_event_common.h is now a copy of deps/v8/base/trace_event/common/trace_event_common.h. |
Sorry, something went wrong.
|
Any updates on this one? |
Sorry, something went wrong.
|
I'm just waiting for some reviews |
Sorry, something went wrong.
| @@ -0,0 +1,1073 @@ | |||
| // Copyright 2015 The Chromium Authors. All rights reserved. | |||
There was a problem hiding this comment.
This file doesn't need include guards?
Sorry, something went wrong.
|
|
||
| #if defined(TRACE_EVENT0) | ||
| #error "Another copy of this file has already been included." | ||
| #endif |
There was a problem hiding this comment.
@bnoordhuis It has this ^
Sorry, something went wrong.
There was a problem hiding this comment.
Right, but the file you moved that from has traditional include guards. I wondered (and wonder) if there is a reason not to add them here.
Sorry, something went wrong.
There was a problem hiding this comment.
I didn't think about that. This is just a copy of the file from V8. Would you like me to add include guards?
Sorry, something went wrong.
|
LGTM. But it doesn't seem to fix the break noted here (comment), per my testing with this follow-on commit. |
Sorry, something went wrong.
|
There are likely more changes required to account for updates to the macros in V8 5.7 which just landed on master. I'm currently working to put together a set of steps for updating these macros when V8 is updated. I also have a patch that will fix these files for 5.7. I can post the steps I've been using here or open the patch separately. @targos What would you prefer? |
Sorry, something went wrong.
|
@matthewloring go ahead and open a PR |
Sorry, something went wrong.
|
Thanks. I'll close this one then. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Currently, trace_event.h contains a full copy of the header present in
deps/v8/base/trace_event/common/trace_event_common.h mixed with
implementation-specific macros.
This patch moves the V8 code to its own file and includes it from
trace_event.h.
src