Skip to content

Instantly share code, notes, and snippets.

View mjcarroll's full-sized avatar

Michael Carroll mjcarroll

View GitHub Profile
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: rolling
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: rolling
ament/ament_lint:
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: rolling
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: rolling
ament/ament_lint:
@mjcarroll
mjcarroll / after
Last active June 15, 2022 18:27
Ignition Math Compilation Summary
**** Time summary:
Compilation (255 times):
Parsing (frontend): 295.5 s
Codegen & opts (backend): 408.3 s
**** Files that took longest to parse (compiler frontend):
6748 ms: /home/mjcarroll/workspaces/gz_garden/build/ignition-math7/src/python_pybind11/CMakeFiles/math.dir/src/_ignition_math_pybind11.cc.json
6383 ms: /home/mjcarroll/workspaces/gz_garden/build/ignition-math7/src/python_pybind11/CMakeFiles/math.dir/src/Quaternion.cc.json
5790 ms: /home/mjcarroll/workspaces/gz_garden/build/ignition-math7/src/python_pybind11/CMakeFiles/math.dir/src/Pose3.cc.json
5411 ms: /home/mjcarroll/workspaces/gz_garden/build/ignition-math7/src/python_pybind11/CMakeFiles/math.dir/src/Line3.cc.json
@mjcarroll
mjcarroll / templight.md
Created January 27, 2022 17:22
Notes on Using Templight to Debug ros_ign_bridge

Motivation: ros_ign_bridge is failing to build in the ROS 2 packaging farm because the memory usage of template instantiation is too high. Specifically, the ros_subscriber is problematic.

Approach: Use templight to debug how much cpu/memory template expansion is taking

Installation of templight

Templight itself is hosted on github: https://github.com/mikael-s-persson/templight The issue is that it may not exactly line up with clang/llvm versions, and their patching seems to be hit or miss.

Install metashell

#0 0x00007f008668aa00 in ?? ()
#1 0x00007f2e80ec575b in std::unique_ptr<sdf::v12::Error::Implementation, void (*)(sdf::v12::Error::Implementation*)>::~unique_ptr (this=0
x558ab4f4a2a0, __in_chrg=<optimized out>) at /usr/include/c++/8/bits/unique_ptr.h:350
#2 ignition::utils::ImplPtr<sdf::v12::Error::Implementation, void (*)(sdf::v12::Error::Implementation*), ignition::utils::detail::CopyMove
DeleteOperations<sdf::v12::Error::Implementation, sdf::v12::Error::Implementation* (*)(sdf::v12::Error::Implementation const&), void (*)(sd
f::v12::Error::Implementation&, sdf::v12::Error::Implementation const&)> >::~ImplPtr (this=0x558ab4f4a2a0, __in_chrg=<optimized out>) at /u
sr/include/ignition/utils1/ignition/utils/ImplPtr.hh:105
#3 sdf::v12::Error::~Error (this=0x558ab4f4a2a0, __in_chrg=<optimized out>) at /usr/include/sdformat-12.0/sdf/Error.hh:148
#4 std::_Destroy<sdf::v12::Error> (__pointer=0x558ab4f4a2a0) at /usr/include/c++/8/bits/stl_construct.h:98
#5 std::_Destroy_aux<false>::__destroy<sdf::v12::Error*>
@mjcarroll
mjcarroll / gist:2cbb74400b1e85ac49a07aa80806c6a4
Created August 18, 2020 15:19
mjcarroll desktop glxinfo
glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
#ifndef POINT_H_
#define POINT_H_
class Point
{
public:
class build;
double x;
double y;
repositories:
ros-perception/image_common:
type: git
url: https://github.com/Martin-Idel/image_common.git
version: feature/fix_uncrustify_for_repos_inclusion
repositories:
ros-perception/vision_opencv:
type: git
url: https://github.com/solosito/vision_opencv.git
version: opencv4-support