Running Trace Processor on Windows

2,094 views
Skip to first unread message

yanshuo jing

unread,
Jul 14, 2021, 12:58:06 PM7/14/21
to Perfetto Development - www.perfetto.dev
Dear Staff,

According to https://perfetto.dev/docs/quickstart/trace-analysis#setup it seems that Trace Processor can only be ran on Linux or Mac. 

I wonder if there is anyway to run Trace Processor to process Perfetto trace output file on Windows machine ?

Thank you

Frederico Xavier

unread,
Jul 15, 2021, 8:04:46 PM7/15/21
to Perfetto Development - www.perfetto.dev
I was about to send the exact same question... =) thanks gmrdms!

Also related: is the Perfetto SDK library (Tracing SDK - Perfetto Tracing Docs) also compilable in Windows (MSVC)?

I was able to very easily compile/consume in Linux, but in Win/VS I ran into over9k issues...

Thanks you,

FX

Primiano Tucci

unread,
Jul 16, 2021, 1:31:37 PM7/16/21
to Frederico Xavier, Perfetto Development - www.perfetto.dev
On Fri, Jul 16, 2021 at 1:04 AM Frederico Xavier <fredxa...@gmail.com> wrote:
I was about to send the exact same question... =) thanks gmrdms!

Also related: is the Perfetto SDK library (Tracing SDK - Perfetto Tracing Docs) also compilable in Windows (MSVC)?

 

I was able to very easily compile/consume in Linux, but in Win/VS I ran into over9k issues...

Do you have more details? I managed to build all the targets listed with both clang-cl and build tools for visual studio 2019 on Windows 10
  

Thanks you,

FX

On Wednesday, 14 July 2021 at 12:58:06 UTC-4 gmrdms...@gmail.com wrote:
Dear Staff,

According to https://perfetto.dev/docs/quickstart/trace-analysis#setup it seems that Trace Processor can only be ran on Linux or Mac. 

I wonder if there is anyway to run Trace Processor to process Perfetto trace output file on Windows machine ?

Thank you

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/perfetto-dev/bac177a0-aaa5-4955-9cb9-77a32fc62841n%40googlegroups.com.


--
Primiano Tucci
Software Engineer
Google UK Limited

Lalit Maganti

unread,
Jul 16, 2021, 2:45:22 PM7/16/21
to Primiano Tucci, Frederico Xavier, Perfetto Development - www.perfetto.dev
On Fri, 16 Jul 2021 at 18:31, 'Primiano Tucci' via Perfetto Development - www.perfetto.dev <perfet...@googlegroups.com> wrote:


On Fri, Jul 16, 2021 at 1:04 AM Frederico Xavier <fredxa...@gmail.com> wrote:
I was about to send the exact same question... =) thanks gmrdms!

Also related: is the Perfetto SDK library (Tracing SDK - Perfetto Tracing Docs) also compilable in Windows (MSVC)?


 

I was able to very easily compile/consume in Linux, but in Win/VS I ran into over9k issues...

Do you have more details? I managed to build all the targets listed with both clang-cl and build tools for visual studio 2019 on Windows 10
  

Thanks you,

FX

On Wednesday, 14 July 2021 at 12:58:06 UTC-4 gmrdms...@gmail.com wrote:
Dear Staff,

According to https://perfetto.dev/docs/quickstart/trace-analysis#setup it seems that Trace Processor can only be ran on Linux or Mac. 

I wonder if there is anyway to run Trace Processor to process Perfetto trace output file on Windows machine ?

Thank you


Trace processor can already be built on Windows. We are working on a solution wrt prebuilts and this will be available in a little while.
 

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/perfetto-dev/bac177a0-aaa5-4955-9cb9-77a32fc62841n%40googlegroups.com.


--
Primiano Tucci
Software Engineer
Google UK Limited

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.

Frederico Xavier

unread,
Jul 16, 2021, 5:37:25 PM7/16/21
to Primiano Tucci, Perfetto Development - www.perfetto.dev
Oh my bad... on Windows it's supposed to be used MSVC 2019... I had MSVC 2017... my apologies =/
Will try again 

--
Fred Xavier, MSc

yanshuo jing

unread,
Jul 22, 2021, 1:23:08 PM7/22/21
to Perfetto Development - www.perfetto.dev
Hi all. 

I was trying to build the trace processor executable on Windows. But currently failing to do so. I observed the following:

1. After I downloaded Build Tools For Visual Studio 2019, I could not find directory \VC\Tools\MSVC\ under any of the directories I have: 
     C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
     C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
Does this mean that the MSVC has not been installed properly? If it is the case, what should I do to install it properly?

2. When I tried to build the trace processor shell, I got the following errors:
=======================================================================================================
Microsoft Windows [Version 10.0.18363.1646]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\<user name>>python3 C:\Users\<user name>\Documents\Perfetto\code_building\perfetto\tools\ninja -C C:\Users\<user name>\Documents\Perfetto\code_building\perfetto\out\win perfetto traced trace_processor_shell
ninja: Entering directory `C:\Users\fzk1f8\Documents\Perfetto\code_building\perfetto\out\win'
[1/989] compile ../../buildtools/jsoncpp/src/lib_json/json_writer.cpp
FAILED: obj/buildtools/jsoncpp/src/lib_json/jsoncpp.json_writer.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DWIN32_LEAN_AND_MEAN -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -DJSON_USE_EXCEPTION=0 /I ../../buildtools/jsoncpp/include /GR- /c ../../buildtools/jsoncpp/src/lib_json/json_writer.cpp /Foobj/buildtools/jsoncpp/src/lib_json/jsoncpp.json_writer.obj /Fd"obj/buildtools/jsoncpp_c.pdb"
In file included from ../../buildtools/jsoncpp/src/lib_json/json_writer.cpp:7:
In file included from ../../buildtools/jsoncpp/src/lib_json/json_tool.h:10:
../../buildtools/jsoncpp/include\json/config.h(8,10): fatal error: 'cstddef' file not found
#include <cstddef>
         ^~~~~~~~~
1 error generated.
[2/989] compile ../../buildtools/jsoncpp/src/lib_json/json_value.cpp
FAILED: obj/buildtools/jsoncpp/src/lib_json/jsoncpp.json_value.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DWIN32_LEAN_AND_MEAN -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -DJSON_USE_EXCEPTION=0 /I ../../buildtools/jsoncpp/include /GR- /c ../../buildtools/jsoncpp/src/lib_json/json_value.cpp /Foobj/buildtools/jsoncpp/src/lib_json/jsoncpp.json_value.obj /Fd"obj/buildtools/jsoncpp_c.pdb"
In file included from ../../buildtools/jsoncpp/src/lib_json/json_value.cpp:7:
../../buildtools/jsoncpp/include\json/assertions.h(9,10): fatal error: 'cstdlib' file not found
#include <cstdlib>
         ^~~~~~~~~
1 error generated.
[3/989] compile ../../buildtools/jsoncpp/src/lib_json/json_reader.cpp
FAILED: obj/buildtools/jsoncpp/src/lib_json/jsoncpp.json_reader.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DWIN32_LEAN_AND_MEAN -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -DJSON_USE_EXCEPTION=0 /I ../../buildtools/jsoncpp/include /GR- /c ../../buildtools/jsoncpp/src/lib_json/json_reader.cpp /Foobj/buildtools/jsoncpp/src/lib_json/jsoncpp.json_reader.obj /Fd"obj/buildtools/jsoncpp_c.pdb"
In file included from ../../buildtools/jsoncpp/src/lib_json/json_reader.cpp:8:
In file included from ../../buildtools/jsoncpp/src/lib_json/json_tool.h:10:
../../buildtools/jsoncpp/include\json/config.h(8,10): fatal error: 'cstddef' file not found
#include <cstddef>
         ^~~~~~~~~
1 error generated.
[4/989] compile ../../buildtools/protobuf/src/google/protobuf/stubs/mathlimits.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/stubs/protobuf_full.mathlimits.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/stubs/mathlimits.cc /Foobj/buildtools/protobuf/src/google/protobuf/stubs/protobuf_full.mathlimits.obj /Fd"obj/buildtools/protobuf_full_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/stubs/mathlimits.cc:36:
../../buildtools/protobuf/src\google/protobuf/stubs/mathlimits.h(52,10): fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
[5/989] compile ../../buildtools/protobuf/src/google/protobuf/util/internal/error_listener.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/util/internal/protobuf_full.error_listener.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/util/internal/error_listener.cc /Foobj/buildtools/protobuf/src/google/protobuf/util/internal/protobuf_full.error_listener.obj /Fd"obj/buildtools/protobuf_full_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/util/internal/error_listener.cc:31:
../../buildtools/protobuf/src\google/protobuf/util/internal/error_listener.h(34,10): fatal error: 'algorithm' file not found
#include <algorithm>
         ^~~~~~~~~~~
1 error generated.
[6/989] compile ../../buildtools/protobuf/src/google/protobuf/util/internal/json_stream_parser.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/util/internal/protobuf_full.json_stream_parser.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/util/internal/json_stream_parser.cc /Foobj/buildtools/protobuf/src/google/protobuf/util/internal/protobuf_full.json_stream_parser.obj /Fd"obj/buildtools/protobuf_full_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/util/internal/json_stream_parser.cc:31:
../../buildtools/protobuf/src\google/protobuf/util/internal/json_stream_parser.h(34,10): fatal error: 'stack' file not found
#include <stack>
         ^~~~~~~
1 error generated.
[7/989] compile ../../buildtools/protobuf/src/google/protobuf/unknown_field_set.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/protobuf_full.unknown_field_set.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/unknown_field_set.cc /Foobj/buildtools/protobuf/src/google/protobuf/protobuf_full.unknown_field_set.obj /Fd"obj/buildtools/protobuf_full_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/unknown_field_set.cc:35:
../../buildtools/protobuf/src\google/protobuf/unknown_field_set.h(41,10): fatal error: 'assert.h' file not found
#include <assert.h>
         ^~~~~~~~~~
1 error generated.
[8/989] compile ../../buildtools/protobuf/src/google/protobuf/any.pb.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/protobuf_full.any.pb.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/any.pb.cc /Foobj/buildtools/protobuf/src/google/protobuf/protobuf_full.any.pb.obj /Fd"obj/buildtools/protobuf_full_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/any.pb.cc:4:
../../buildtools/protobuf/src\google/protobuf/any.pb.h(7,10): fatal error: 'limits' file not found
#include <limits>
         ^~~~~~~~
1 error generated.
[9/989] compile ../../buildtools/protobuf/src/google/protobuf/util/internal/default_value_objectwriter.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/util/internal/protobuf_full.default_value_objectwriter.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/util/internal/default_value_objectwriter.cc /Foobj/buildtools/protobuf/src/google/protobuf/util/internal/protobuf_full.default_value_objectwriter.obj /Fd"obj/buildtools/protobuf_full_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/util/internal/default_value_objectwriter.cc:31:
../../buildtools/protobuf/src\google/protobuf/util/internal/default_value_objectwriter.h(34,10): fatal error: 'memory' file not found
#include <memory>
         ^~~~~~~~
1 error generated.
[10/989] compile ../../buildtools/protobuf/src/google/protobuf/compiler/java/java_message_lite.cc
FAILED: obj/buildtools/protobuf/src/google/protobuf/compiler/java/protoc_lib.java_message_lite.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DHAVE_PTHREAD=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen /Od -fstrict-aliasing -Wformat /bigobj /Gy /FS /utf-8 /WX -fcolor-diagnostics /Z7 -gcodeview-ghash -Wno-unknown-warning-option -Wno-enum-compare-switch -Wno-user-defined-warnings -Wno-tautological-constant-compare -Wno-inconsistent-missing-override /W0 -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-unknown-warning-option -Wno-deprecated -Wno-undef -Wno-zero-as-null-pointer-constant -Wno-reserved-id-macro -Wno-language-extension-token -Wno-sign-conversion -Wno-suggest-destructor-override -Wno-undefined-reinterpret-cast -Wno-inconsistent-missing-destructor-override -Wno-unused-parameter /I ../../buildtools/protobuf/src -Wno-switch-enum /GR- /c ../../buildtools/protobuf/src/google/protobuf/compiler/java/java_message_lite.cc /Foobj/buildtools/protobuf/src/google/protobuf/compiler/java/protoc_lib.java_message_lite.obj /Fd"obj/buildtools/protoc_lib_c.pdb"
In file included from ../../buildtools/protobuf/src/google/protobuf/compiler/java/java_message_lite.cc:35:
../../buildtools/protobuf/src\google/protobuf/compiler/java/java_message_lite.h(38,10): fatal error: 'map' file not found
#include <map>
         ^~~~~
1 error generated.
ninja: build stopped: subcommand failed.

=================================================================================================
I wonder the build error I got was actually because of missing MSVC directory I mentioned in point one? 

Also I wonder is it possible for Perfetto to help build a trace processor executable for Windows Machine and share it so we don't have to build it by ourselves?

Please let me know ASAP

Thank you,

Antony


Lalit Maganti

unread,
Jul 22, 2021, 3:42:03 PM7/22/21
to yanshuo jing, Perfetto Development - www.perfetto.dev
While still heavily work in progress, we do have some Windows binaries for trace processor we can share with you. You can find that here. Inside the zip, you'll find the built trace_processor_shell.exe binary.

We're working on integrating this into the trace_processor python script - there is a CL actively under review for this.

yanshuo jing

unread,
Jul 26, 2021, 11:15:14 AM7/26/21
to Perfetto Development - www.perfetto.dev
Hi all,

While I have already asked Lalit on this. I want also direct this question to everyone that since Perfetto is working on integrating Windows binaries for trace processor into the trace_processor python script, is it about "Python API" in https://perfetto.dev/docs/quickstart/trace-analysis

Also when will be estimate time for the task of integrating Windows binary into trace_processor python script to be completed?

Thank you

Antony

Lalit Maganti

unread,
Jul 26, 2021, 11:42:24 AM7/26/21
to yanshuo jing, Perfetto Development - www.perfetto.dev
The response I gave to you directly still stands:
We're working on it but there's no more specific date I can give.


Vaisakh P S

unread,
Aug 17, 2021, 11:51:01 AM8/17/21
to Perfetto Development - www.perfetto.dev
Hello, 

I am new comer to this group.

For the same issue, was able to compile perfetto trace analysis tools on Windows using WSL2/Ubuntu Image. 
I would recommend exploring  :)

--
Vaisakh

Reply all
Reply to author
Forward
0 new messages