Skip to content

Commit 21c70cd

Browse files
authored
Merge pull request #608 from Tencent/dev
Matrix for iOS v1.0.1
2 parents b7b4864 + effff0e commit 21c70cd

39 files changed

+1247
-779
lines changed

matrix-wechat.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
Pod::Spec.new do |matrix|
99
matrix.name = 'matrix-wechat'
10-
matrix.version = '0.6.7'
10+
matrix.version = '1.0.1'
1111
matrix.summary = 'Matrix for iOS/macOS is a performance probe tool developed and used by WeChat.'
1212
matrix.description = <<-DESC
1313
Matrix for iOS/macOS is a performance probe tool developed and used by WeChat.
@@ -21,10 +21,10 @@ Pod::Spec.new do |matrix|
2121
matrix.homepage = 'https://github.com/Tencent/matrix'
2222
matrix.license = { :type => 'BSD', :file => 'LICENSE' }
2323
matrix.author = { 'johnzjchen' => '[email protected]' }
24-
matrix.source = { :git => 'https://github.com/Tencent/matrix.git', :branch => "feature/ios-matrix-cocopods-0.6.7" }
24+
matrix.source = { :git => 'https://github.com/Tencent/matrix.git', :branch => "feature/ios-matrix-cocopods-1.0.1" }
2525
matrix.module_name = "Matrix"
2626

27-
matrix.ios.deployment_target = '10.0'
27+
matrix.ios.deployment_target = '9.0'
2828
matrix.osx.deployment_target = "10.10"
2929
matrix.libraries = "z", "c++"
3030
matrix.frameworks = "CoreFoundation", "Foundation"

matrix/matrix-iOS/Matrix/Matrix.xcodeproj/project.pbxproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@
206206
B9620E0825F238F900CD8AD7 /* splay_map.h in Headers */ = {isa = PBXBuildFile; fileRef = B9620E0425F238F900CD8AD7 /* splay_map.h */; };
207207
B9620E0925F238F900CD8AD7 /* buffer_source.h in Headers */ = {isa = PBXBuildFile; fileRef = B9620E0525F238F900CD8AD7 /* buffer_source.h */; };
208208
B9620E1825F2393A00CD8AD7 /* allocation_event_db_old.h in Headers */ = {isa = PBXBuildFile; fileRef = B9620E0D25F2393A00CD8AD7 /* allocation_event_db_old.h */; };
209-
B9620E1925F2393A00CD8AD7 /* memory_logging_event.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B9620E0E25F2393A00CD8AD7 /* memory_logging_event.cpp */; };
210209
B9620E1A25F2393A00CD8AD7 /* memory_logging_event_buffer_pool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B9620E0F25F2393A00CD8AD7 /* memory_logging_event_buffer_pool.cpp */; };
211210
B9620E1B25F2393A00CD8AD7 /* memory_logging_event_buffer_list.h in Headers */ = {isa = PBXBuildFile; fileRef = B9620E1025F2393A00CD8AD7 /* memory_logging_event_buffer_list.h */; };
212211
B9620E1C25F2393A00CD8AD7 /* memory_logging_event_buffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B9620E1125F2393A00CD8AD7 /* memory_logging_event_buffer.cpp */; };
@@ -492,7 +491,6 @@
492491
B9620E0425F238F900CD8AD7 /* splay_map.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = splay_map.h; sourceTree = "<group>"; };
493492
B9620E0525F238F900CD8AD7 /* buffer_source.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = buffer_source.h; sourceTree = "<group>"; };
494493
B9620E0D25F2393A00CD8AD7 /* allocation_event_db_old.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = allocation_event_db_old.h; sourceTree = "<group>"; };
495-
B9620E0E25F2393A00CD8AD7 /* memory_logging_event.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = memory_logging_event.cpp; sourceTree = "<group>"; };
496494
B9620E0F25F2393A00CD8AD7 /* memory_logging_event_buffer_pool.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = memory_logging_event_buffer_pool.cpp; sourceTree = "<group>"; };
497495
B9620E1025F2393A00CD8AD7 /* memory_logging_event_buffer_list.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = memory_logging_event_buffer_list.h; sourceTree = "<group>"; };
498496
B9620E1125F2393A00CD8AD7 /* memory_logging_event_buffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = memory_logging_event_buffer.cpp; sourceTree = "<group>"; };
@@ -1134,7 +1132,6 @@
11341132
B9620E1325F2393A00CD8AD7 /* memory_logging_event_buffer_pool.h */,
11351133
B9620E0F25F2393A00CD8AD7 /* memory_logging_event_buffer_pool.cpp */,
11361134
B9620E1525F2393A00CD8AD7 /* memory_logging_event.h */,
1137-
B9620E0E25F2393A00CD8AD7 /* memory_logging_event.cpp */,
11381135
116834C722538BB500D6ED61 /* nsobject_hook_method.h */,
11391136
116834C822538BB500D6ED61 /* nsobject_hook_method.mm */,
11401137
BB77ACC722368582008C67D9 /* nsobject_hook.h */,
@@ -1475,7 +1472,6 @@
14751472
1127770325ECD92E00F7A6E4 /* KSCrash_BinaryImageHandler.mm in Sources */,
14761473
BB77AD1E22368582008C67D9 /* nsobject_hook.mm in Sources */,
14771474
116460B82111AF190069B5DE /* KSStackCursor_MachineContext.c in Sources */,
1478-
B9620E1925F2393A00CD8AD7 /* memory_logging_event.cpp in Sources */,
14791475
116460B92111AF190069B5DE /* KSCrashMonitor_Zombie.c in Sources */,
14801476
116460BA2111AF190069B5DE /* KSDynamicLinker.c in Sources */,
14811477
B9620E2225F2393A00CD8AD7 /* allocation_event_db_old.cpp in Sources */,
@@ -1613,7 +1609,7 @@
16131609
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
16141610
GCC_WARN_UNUSED_FUNCTION = YES;
16151611
GCC_WARN_UNUSED_VARIABLE = YES;
1616-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
1612+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
16171613
MACOSX_DEPLOYMENT_TARGET = 10.9;
16181614
MTL_ENABLE_DEBUG_INFO = YES;
16191615
ONLY_ACTIVE_ARCH = YES;
@@ -1672,7 +1668,7 @@
16721668
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
16731669
GCC_WARN_UNUSED_FUNCTION = YES;
16741670
GCC_WARN_UNUSED_VARIABLE = YES;
1675-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
1671+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
16761672
MACOSX_DEPLOYMENT_TARGET = 10.9;
16771673
MTL_ENABLE_DEBUG_INFO = NO;
16781674
VALIDATE_PRODUCT = YES;

matrix/matrix-iOS/Matrix/WCMemoryStat/MemoryLogger/ObjectEvent/allocation_event.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@
2020
#include <mach/mach.h>
2121

2222
struct allocation_event {
23-
//uint64_t address; // top 8 bits are actually the flags
24-
uint16_t alloca_type; // allocation type, such as memory_logging_type_alloc or memory_logging_type_vm_allocate
25-
uint16_t object_type; // object type, such as NSObject, NSData, CFString, etc...
2623
uint32_t stack_identifier;
2724
uint32_t size;
28-
uint32_t t_id;
25+
uint32_t object_type; // object type, such as NSObject, NSData, CFString, etc...
26+
uint32_t alloca_type; // allocation type, such as memory_logging_type_alloc or memory_logging_type_vm_allocate
2927

30-
allocation_event(uint16_t _at = 0, uint16_t _ot = 0, uint32_t _si = 0, uint32_t _sz = 0, uint32_t _id = 0) {
28+
allocation_event(uint32_t _at = 0, uint32_t _ot = 0, uint32_t _si = 0, uint32_t _sz = 0) {
3129
alloca_type = _at;
3230
object_type = _ot;
3331
stack_identifier = _si;
3432
size = _sz;
35-
t_id = _id;
3633
}
3734
};
3835

0 commit comments

Comments
 (0)