Small tweaks and fixes
This commit is contained in:
parent
d7a5eb54fd
commit
237a23def4
4
.github/workflows/performance-tests.yml
vendored
4
.github/workflows/performance-tests.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-linux:
|
performancetest-linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./speedtest | python3 ../ci/speedtest.py ${{matrix.config}}
|
./speedtest | python3 ../ci/speedtest.py ${{matrix.config}}
|
||||||
# TODO: For some reason this is slow on github's runner
|
# TODO: For some reason this is slow on github's runner
|
||||||
#test-windows:
|
#performancetest-windows:
|
||||||
# runs-on: windows-2019
|
# runs-on: windows-2019
|
||||||
# strategy:
|
# strategy:
|
||||||
# fail-fast: false
|
# fail-fast: false
|
||||||
|
|||||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
# TODO: Test statically linked
|
# TODO: Test statically linked
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
test-linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -17,7 +17,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 install colorama
|
pip3 install colorama
|
||||||
python3 ci/test-all-configs.py
|
python3 ci/test-all-configs.py
|
||||||
build-macos:
|
test-macos:
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -25,7 +25,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 install colorama
|
pip3 install colorama
|
||||||
python3 ci/test-all-configs.py
|
python3 ci/test-all-configs.py
|
||||||
build-windows-msvc:
|
test-windows-msvc:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 install colorama
|
pip3 install colorama
|
||||||
python3 ci/test-all-configs.py --msvc-only
|
python3 ci/test-all-configs.py --msvc-only
|
||||||
build-windows-clang:
|
test-windows-clang:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -45,7 +45,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip3 install colorama
|
pip3 install colorama
|
||||||
python3 ci/test-all-configs.py --clang-only
|
python3 ci/test-all-configs.py --clang-only
|
||||||
build-windows-mingw:
|
test-windows-mingw:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
@ -77,7 +77,7 @@ def build(matrix):
|
|||||||
print()
|
print()
|
||||||
|
|
||||||
def build_full_or_auto(matrix):
|
def build_full_or_auto(matrix):
|
||||||
print(matrix)
|
print(f"{Fore.BLUE}{Style.BRIGHT}{'=' * 10} Running build with config {'<auto>' if matrix['config'] == '' else ', '.join(matrix.values())} {'=' * 10}{Style.RESET_ALL}")
|
||||||
|
|
||||||
if os.path.exists("build"):
|
if os.path.exists("build"):
|
||||||
shutil.rmtree("build")
|
shutil.rmtree("build")
|
||||||
|
|||||||
@ -55,7 +55,7 @@ namespace cpptrace {
|
|||||||
|
|
||||||
// SymGetTypeInfo utility
|
// SymGetTypeInfo utility
|
||||||
template<typename T, IMAGEHLP_SYMBOL_TYPE_INFO SymType, bool FAILABLE = false>
|
template<typename T, IMAGEHLP_SYMBOL_TYPE_INFO SymType, bool FAILABLE = false>
|
||||||
auto get_info(ULONG type_index, HANDLE proc, ULONG64 modbase) {
|
T get_info(ULONG type_index, HANDLE proc, ULONG64 modbase) {
|
||||||
T info;
|
T info;
|
||||||
if(!SymGetTypeInfo(proc, modbase, type_index, static_cast<::IMAGEHLP_SYMBOL_TYPE_INFO>(SymType), &info)) {
|
if(!SymGetTypeInfo(proc, modbase, type_index, static_cast<::IMAGEHLP_SYMBOL_TYPE_INFO>(SymType), &info)) {
|
||||||
if(FAILABLE) {
|
if(FAILABLE) {
|
||||||
@ -71,7 +71,7 @@ namespace cpptrace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<IMAGEHLP_SYMBOL_TYPE_INFO SymType, bool FAILABLE = false>
|
template<IMAGEHLP_SYMBOL_TYPE_INFO SymType, bool FAILABLE = false>
|
||||||
auto get_info_wchar(ULONG type_index, HANDLE proc, ULONG64 modbase) {
|
std::string get_info_wchar(ULONG type_index, HANDLE proc, ULONG64 modbase) {
|
||||||
WCHAR* info;
|
WCHAR* info;
|
||||||
if(!SymGetTypeInfo(proc, modbase, type_index, static_cast<::IMAGEHLP_SYMBOL_TYPE_INFO>(SymType), &info)) {
|
if(!SymGetTypeInfo(proc, modbase, type_index, static_cast<::IMAGEHLP_SYMBOL_TYPE_INFO>(SymType), &info)) {
|
||||||
throw std::logic_error(
|
throw std::logic_error(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user