mirror of https://github.com/grpc/grpc.git
commit
7ae081b9f0
30 changed files with 616 additions and 298 deletions
@ -0,0 +1,40 @@ |
||||
#!/bin/bash |
||||
# Copyright 2015, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
mkdir -p $OUTPUT_DIR |
||||
|
||||
PERF_DATA_FILE=${PERF_BASE_NAME}-perf.data |
||||
PERF_SCRIPT_OUTPUT=${PERF_BASE_NAME}-out.perf |
||||
|
||||
# Generate Flame graphs |
||||
echo "running perf script on $PERF_DATA_FILE" |
||||
perf script -i $PERF_DATA_FILE > $PERF_SCRIPT_OUTPUT |
||||
|
||||
~/FlameGraph/stackcollapse-perf.pl $PERF_SCRIPT_OUTPUT | ~/FlameGraph/flamegraph.pl > ${OUTPUT_DIR}/${OUTPUT_FILENAME}.svg |
@ -0,0 +1,44 @@ |
||||
#!/bin/bash |
||||
# Copyright 2015, Google Inc. |
||||
# All rights reserved. |
||||
# |
||||
# Redistribution and use in source and binary forms, with or without |
||||
# modification, are permitted provided that the following conditions are |
||||
# met: |
||||
# |
||||
# * Redistributions of source code must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# * Redistributions in binary form must reproduce the above |
||||
# copyright notice, this list of conditions and the following disclaimer |
||||
# in the documentation and/or other materials provided with the |
||||
# distribution. |
||||
# * Neither the name of Google Inc. nor the names of its |
||||
# contributors may be used to endorse or promote products derived from |
||||
# this software without specific prior written permission. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||
|
||||
mkdir -p $OUTPUT_DIR |
||||
|
||||
PERF_DATA_FILE=${PERF_BASE_NAME}-perf.data |
||||
PERF_SCRIPT_OUTPUT=${PERF_BASE_NAME}-out.perf |
||||
|
||||
# Generate Flame graphs |
||||
echo "running perf script on $USER_AT_HOST with perf.data" |
||||
ssh $USER_AT_HOST "cd ~/performance_workspace/grpc && perf script -i $PERF_DATA_FILE | gzip > ${PERF_SCRIPT_OUTPUT}.gz" |
||||
|
||||
scp $USER_AT_HOST:~/performance_workspace/grpc/$PERF_SCRIPT_OUTPUT.gz . |
||||
|
||||
gzip -d -f $PERF_SCRIPT_OUTPUT.gz |
||||
|
||||
~/FlameGraph/stackcollapse-perf.pl --kernel $PERF_SCRIPT_OUTPUT | ~/FlameGraph/flamegraph.pl --color=java --hash > ${OUTPUT_DIR}/${OUTPUT_FILENAME}.svg |
@ -0,0 +1,125 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<ItemGroup> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\benchmark.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\benchmark_register.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\colorprint.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\commandlineflags.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\complexity.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\console_reporter.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\csv_reporter.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\json_reporter.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\reporter.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\sleep.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\string_util.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\sysinfo.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\benchmark\src\timers.cc"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClCompile> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\include\benchmark\benchmark.h"> |
||||
<Filter>third_party\benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\include\benchmark\benchmark_api.h"> |
||||
<Filter>third_party\benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\include\benchmark\macros.h"> |
||||
<Filter>third_party\benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\include\benchmark\reporter.h"> |
||||
<Filter>third_party\benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\arraysize.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\benchmark_api_internal.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\check.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\colorprint.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\commandlineflags.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\complexity.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\cycleclock.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\internal_macros.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\log.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\mutex.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\re.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\sleep.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\stat.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\string_util.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\sysinfo.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\benchmark\src\timers.h"> |
||||
<Filter>third_party\benchmark\src</Filter> |
||||
</ClInclude> |
||||
</ItemGroup> |
||||
|
||||
<ItemGroup> |
||||
<Filter Include="third_party"> |
||||
<UniqueIdentifier>{7b593518-9fee-107e-6b64-24bdce73f939}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\benchmark"> |
||||
<UniqueIdentifier>{f0d35de1-6b41-778d-0ba0-faad514fb0f4}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\benchmark\include"> |
||||
<UniqueIdentifier>{cbc02dfa-face-8cc6-0efb-efacc0c3369c}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\benchmark\include\benchmark"> |
||||
<UniqueIdentifier>{4f2f03fc-b82d-df33-63ee-bedebeb2c0ee}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\benchmark\src"> |
||||
<UniqueIdentifier>{f42a8e0a-5a76-0e6f-d708-f0306858f673}</UniqueIdentifier> |
||||
</Filter> |
||||
</ItemGroup> |
||||
</Project> |
||||
|
@ -1,125 +0,0 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<ItemGroup> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\benchmark.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\benchmark_register.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\colorprint.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\commandlineflags.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\complexity.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\console_reporter.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\csv_reporter.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\json_reporter.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\reporter.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\sleep.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\string_util.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\sysinfo.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
<ClCompile Include="$(SolutionDir)\..\third_party\google_benchmark\src\timers.cc"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClCompile> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\include\benchmark\benchmark.h"> |
||||
<Filter>third_party\google_benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\include\benchmark\benchmark_api.h"> |
||||
<Filter>third_party\google_benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\include\benchmark\macros.h"> |
||||
<Filter>third_party\google_benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\include\benchmark\reporter.h"> |
||||
<Filter>third_party\google_benchmark\include\benchmark</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\arraysize.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\benchmark_api_internal.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\check.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\colorprint.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\commandlineflags.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\complexity.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\cycleclock.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\internal_macros.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\log.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\mutex.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\re.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\sleep.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\stat.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\string_util.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\sysinfo.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
<ClInclude Include="$(SolutionDir)\..\third_party\google_benchmark\src\timers.h"> |
||||
<Filter>third_party\google_benchmark\src</Filter> |
||||
</ClInclude> |
||||
</ItemGroup> |
||||
|
||||
<ItemGroup> |
||||
<Filter Include="third_party"> |
||||
<UniqueIdentifier>{7458b63d-7ba4-103d-2bed-3e3ad30d8237}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\google_benchmark"> |
||||
<UniqueIdentifier>{54a154e8-669b-a7c1-9b6e-bd1aab2f86e3}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\google_benchmark\include"> |
||||
<UniqueIdentifier>{f54c3cb1-ec20-a651-6956-78379b51e1a5}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\google_benchmark\include\benchmark"> |
||||
<UniqueIdentifier>{0483a457-8050-4565-bc15-09695bf7b822}</UniqueIdentifier> |
||||
</Filter> |
||||
<Filter Include="third_party\google_benchmark\src"> |
||||
<UniqueIdentifier>{c39ff2d1-691e-4614-4d75-4bc20db05e09}</UniqueIdentifier> |
||||
</Filter> |
||||
</ItemGroup> |
||||
</Project> |
||||
|
Loading…
Reference in new issue